Schedulare uno script Powershell EMS 2010 usando lo schedulatore di Windows

Step per schedulare uno script che utilizza la Exchange Management Shell (EMS) 2010.

  1. Dallo schedulatore, “Create Basic Task…
  2. Schedulare lo script nella sezione “Trigger
  3. 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

Create Basic Task Wizard

Liked this post? Follow this blog to get more. 


This site uses Akismet to reduce spam. Learn how your comment data is processed.