Skip to content

Instantly share code, notes, and snippets.

@wim-beck
Created October 1, 2020 10:29
Show Gist options
  • Save wim-beck/493946959411f3f5168376588c3cc303 to your computer and use it in GitHub Desktop.
Save wim-beck/493946959411f3f5168376588c3cc303 to your computer and use it in GitHub Desktop.
param($AccountName)
$adUser = Get-AdUser $AccountName
$immutableID = [system.convert]::ToBase64String($adUser.ObjectGuid.tobytearray())
return $immutableID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment