Scripts/get-smtask.ps1

1
2
3
4
5
param ( $computername = "localhost" )
[reflection.assembly]::LoadWithPartialName("Microsoft.EnterpriseManagement.Core")|out-null
$EMG = new-object Microsoft.EnterpriseManagement.EnterpriseManagementGroup $computername
$EMG.TaskConfiguration.GetTasks()