$scheduleObject = New-Object -ComObject Schedule.Service $scheduleObject.connect() $rootFolder = $scheduleObject.GetFolder("\") $rootFolder.DeleteFolder("\Microsoft",$null)