You havea vRanger Powershell script created, and you want the ability to schedule a task to run the powershell script. You will need to schedule your script by using the task scheduler to complete this action.
If the script is not scheduled correctly your script will not run.
Please use the following steps to schedule a powershell script.
1. Open the task scheduler (Start -> All Programs -> Accessories -> System Tools -> Task Scheduler
2. Click option Create Basic Task
3. Type a name and a description for your task
4. Choose on a trigger for your task
5. Configure the trigger setting you chose above
6. Configure the action “Start a program”
7. The program to start is Powershell and you will need the following line added
" C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
8. Use the following argument
"-command “& ‘x:\yyourpowershellscript.ps1′ “
9.*** Click the open the properties window checkbox to set extra options***
10. Select the Run whether user is logged on on not option and check the Run with highest privileges checkbox, don’t forget to select the correct user
11 ***On the Triggers tab you can configure your schedule to repeat the schedule every hour, 10 minutes or whatever time you set
12. Save the Scheduled task and now you can run it manually to test it