Goto Microsoft for Naming conventions in Active Directory
– Good to know …
For every 1603 in the World
Goto Microsoft for Naming conventions in Active Directory
– Good to know …
Return all the users groups, without installing Microsoft Remote Server Administration Tools (RSAT), Active Directory Module for Windows PowerShell.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Function Get-AllUserGroups { [cmdletbinding()] param() $Groups = [System.Security.Principal.WindowsIdentity]::GetCurrent().Groups foreach ($Group in $Groups) { $GroupSID = $Group.Value $GroupName = New-Object System.Security.Principal.SecurityIdentifier($GroupSID) $GroupDisplayName = $GroupName.Translate([System.Security.Principal.NTAccount]) $GroupDisplayName } } |
Thanks to KFR for this example