Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

quest powershell : how do you run scheduled task?

How do you run a scheduled task with Quest powershell snap in?

like image 801
phill Avatar asked May 13 '26 10:05

phill


1 Answers

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.)

like image 83
Don Jones Avatar answered May 16 '26 07:05

Don Jones



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!