I'm running PowerShell scripts at logon by:
Run: gpedit.msc ->
Local Group Policy Editor ->
User Configuration ->
Windows Settings ->
Scripts (Logon/Logoff) ->
Logon ->
PowerShell Scripts ->
Add ->
Browse
In the script, I'm executing programs using Start-Process:
if (!(Get-Process "outlook" -ea SilentlyContinue)) {
Start-Process "outlook.exe"
} else { Log("Outlook already running.") }
But it seems to start these processes as administrator, which I don't want to happen.
How can I avoid this?