The "Identity" parameter can be skipped, and the "Type" parameter can be used instead, along with the "SearchRoot".
For example, the following cmdlet returns a list of all Scheduled Tasks in the default container:
Connect-QADService -proxy | out-null
$varPath = "CN=Scheduled Tasks,CN=Server Configuration,CN=Configuration"
$task = Get-QADObject -Type edsScheduledTask -Proxy -IncludeAllProperties -SearchRoot $varPath
$task | select @{Name="Task Name";Expression={$_.name}}, `
@{Name="Next Run Time";Expression={$_.edsvaNextRunTime}}, `
@{Name="Last Run Time";Expression={$_.edsaLastRunTime}}, `
@{Name="Last Run Result";Expression={$_.edsvaTaskStateString}}, `
@{Name="Schedule";Expression={$_.edsvaScheduleDescription -replace ',.*'}}
NOTE: The -SearchRoot parameter can also be used to scope Active Directory results to a specific Domain or Organizational Unit.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center