July 2017
Intermediate to advanced
648 pages
31h 9m
English
The previous example demonstrated scheduling a task from an Exchange server using the installed Exchange Management Shell tools. Since all of the Exchange Management Shell connections utilize PowerShell remoting, it is possible to schedule a script to run from a workstation or server without the Exchange tools installed.
To schedule a task from a machine without the Exchange tools installed, use the steps from the previous example, but use the following syntax for the program action:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "$s = New-PSSession -ConfigurationNameMicrosoft.Exchange -ConnectionUri http://tlex01.contoso.com/PowerShell/; Import-PSSession $s ; c:\Scripts\MoveMailboxes.ps1"
You can see, ...
Read now
Unlock full access