Instantly share code, notes, and snippets.

Embed
What would you like to do?
if(@(Compare-Object $CurrentUserSid $JobScheduleOwnerSid -SyncWindow 0).Length -gt 0)
{
Write-Host "Not owner of the schedule - alternate method"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment