Using the powershell code below, the script runs and nothing happens. There ARE existing Jobs. And the Server name is correct. No error, it just runs and immediately returns.
$srv = New-Object Microsoft.SqlServer.Management.Smo.Server("sql01")
$srv.JobServer.Jobs | Where-Object {$_.Name -notlike "sys*"} | Select Name
Any ideas?
Thanks!