Skip to content

Instantly share code, notes, and snippets.

@RichieBzzzt
Created January 9, 2018 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichieBzzzt/9a0a5e542e6eb50eb1963884c9381713 to your computer and use it in GitHub Desktop.
Save RichieBzzzt/9a0a5e542e6eb50eb1963884c9381713 to your computer and use it in GitHub Desktop.
[byte[]] $CurrentUserSid = 1,2,3
[byte[]] $JobScheduleOwnerSid = 1,2,3
Clear-Host
if ($CurrentUserSid -notmatch $JobScheduleOwnerSid)
{
Write-Host "Not owner of the schedule - current method"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment