How do you run a scheduled task with Quest powershell snap in?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would schedule PowerShell.exe, and use one of its command-line parameters to specify the script to run. At the start of that script, add:
Add-PSSnapin Quest.ActiveRoles.ADManagement
That will load the snapin for that script, and then execute whatever else is in the script.
(BTW, this would be the case for any script that needs one or more extra snapins.)