Thaidog
asked on
Need help configuring a scheduled task (ran when not logged in)
I have configured a basic task to run that will run fine when I am logged in but when I re-configure it to run when I am not logged in it does not run. I have entered my credentials and I also tried checking the "run with the highest privileges" checkbox also. Any ideas not how to get this working?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is for a powershell script to log on remotely to a vSphere server to do some sanity checks on the fiber channel storage.... I am running it with the hidden window option:
I'll try it with the screen locked to see if that works after I revert the changes I made to have it run when logged off...
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -nologo -WindowStyle Hidden -command "& {C:\users\johndoe\SkyDrive\PowerShell\Scripts\get_bad_paths.ps1}"
I'll try it with the screen locked to see if that works after I revert the changes I made to have it run when logged off...
Make sure the require user to be logon or interact with desktop is not checked.
The other issue deals with whether your credentials have the run as batch rights.