Step per schedulare uno script che utilizza la Exchange Management Shell (EMS) 2010.
- Dallo schedulatore, “Create Basic Task…“
- Schedulare lo script nella sezione “Trigger“
- Nella sezione “Action“, selezionare “Start a program”
- In Program/script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- In Add arguments (optional): -WindowsStyle Hidden -command “. ‘C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1’; Connect-ExchangeServer -auto; c:\script\myscript.ps1”
WindowsStyle Hidden: per non far apparire finestre a monitor
c:\script\myscript.ps1: script da far girare
Liked this post? Follow this blog to get more.