Scheduled Powershell Script not working


i have scheduled powershell script saves files on c:\temp folder , copies directory after script completes.  script works fine if run manually powergui.  if run scheduled task, runs under administrative account, files not created in directories.  have task running "highest privileges".  suggestion on how troubleshoot or may causing permissions problem folder?

thank you

l


lornzo gonzalez

hello,

did enable powershell remote execution, allow system run powershell scripts created on local machine:

set-executionpolicy remotesigned

then create .bat or .cmd file content:

powershell.exe -command "& 'myscript.ps1' "

and configure scheduled task know.

also see nioce video:
http://get-admin.com/blog/?p=4

check out also:

http://blogs.technet.com/b/heyscriptingguy/archive/2009/03/30/how-can-i-create-a-scheduled-task-on-a-number-of-computers.aspx


best regards meinolf weber disclaimer: posting provided "as is" no warranties or guarantees , , confers no rights.


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group