Options
Running powershell scripts as a scheduled task.
I've found plenty of methods on Google about how to do this, but I need to run powershell scripts that use the Quest ActiveRoles Active Directory cmdlets. They need to be included but im not sure how to do that with options/tags added to the end of the EXE path to execute.
Anyone done this before?
Anyone done this before?
Comments
-
OptionsClaymoore Member Posts: 1,637An example using EMS:
To schedule Exchange Management Shell commands, you must run Microsoft Windows PowerShell (PowerShell.exe) with the PsConsoleFile parameter to load the Exchange Console Extensions and with the Command parameter to run the specific Exchange Management Shell command.
PowerShell.exe -PsConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command d:\scripts\MyScript.ps1
How to Deploy Exchange 2007 in a Cross-Forest Topology
Of course you will need to include the path to the Quest powershell extensions, but this should work.