Skip to content

Instantly share code, notes, and snippets.

@tomhebbron
Created July 21, 2020 09:41
Show Gist options
  • Save tomhebbron/c0516e07f8a9cd7e0ddba262ea2a3132 to your computer and use it in GitHub Desktop.
Save tomhebbron/c0516e07f8a9cd7e0ddba262ea2a3132 to your computer and use it in GitHub Desktop.
PowerShell unpack AD users and groups XML
$groups = Import-Clixml c:\temp\ADGroups.xml
$users = Import-Clixml c:\temp\ADUsers.xml
$users | export-csv -NoTypeInformation c:\temp\AD-users.csv
$groups | export-csv -NoTypeInformation c:\temp\AD-groups.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment