jpertchik
asked on
How do I use Power Shell to execute code in windows scheduler
I've got the code to do a ROBOCOPY pulling a folder and all sub-folders and files. I just don't know how to get Power Shell to execute the code using Windows Scheduler on Server 2008 R2. I'm using Task scheduler on the server to setup a scheduled backup from the client machine to the server
Here is my code:
ROBOCOPY \\aegis-pedge\C$\"visual studio 2010" D:\NASShare\"visual studio 2010" /E
It works like a charm when i open Power Shell and run the command. How can i automate this to work with Windows scheduler?
As Always Thanks in Advance EE!
jpertchik
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great advice! Thanks EE!
ASKER
Thanks for your comment.