Hi All,
I am running a powershell script on windows server 2012 R2. It runs fine when i run it with powershell.
And when i create task and choose option " Run only when the user is logged in" it works fine.
But the issue is when i select "Run whether is the user is logged in or not" And with highest privilege it doesn't work.
Tried solution:
created a folder (or two on a 64bit-windows):
(32Bit, always)
C:\Windows\System32\config\systemprofile\Dektop
(64Bit)
C:\Windows\SysWOW64\config\systemprofile\Desktop
as the powershell creates a excel and saves it in the some folder.
not sure what is causing it.
Any help on this will be appreciated.