Private/HashFunctions/Get-Hash_UserGroupName_ID.ps1
Function Get-Hash_UserGroupName_ID () { $UserGroupHash = New-Object System.Collections.Hashtable $UserGroups = Get-JCGroup -Type User foreach ($Group in $UserGroups) { $UserGroupHash.Add($Group.name, $Group.id) } return $UserGroupHash } |