Trigger Scheduled Tasks Remotely

Sometimes you have the same scheduled task configured for manual execution across different servers. Instead of triggering the start manually on each server by logging on remotely, you can trigger the scheduled task on each server using Remote PowerShell.

The following example triggers the configured scheduled task My-Manual-Task on server MYSERVER01 to MYSERVER06.

$cimSession = New-CimSession -ComputerName MYSERVER01,MYSERVER02,MYSERVER03,MYSERVER04,MYSERVER05,MYSERVER06

Start-ScheduledTask My-Manual-Task -CimSession $cimSessionRemove-CimSession $cimSession

Enjoy Remote PowerShell

Are you unsure what Office 365 has to offer for your business? We are here to help you get the best out of Office 365. Contact us at or visit our website.  

%d Bloggern gefällt das: