I have been using the Powershell Scheduled Task Cmdlets to create a scheduled task on our servers.
How do I elect to \'Run whether user is logged in or not\' using
Once you have the task set up in the gui, run this
$task = Get-ScheduledTask "test task for notepad" $task.Principal.LogonType = "Password" Set-ScheduledTask $task