Private/HashFunctions/Get-Hash_ID_SystemGroupName.ps1
Function Get-Hash_ID_SystemGroupName () { $SystemGroupHash = New-Object System.Collections.Hashtable $SystemGroups = Get-JCGroup -Type System foreach ($SystemGroup in $SystemGroups) { If (-not $SystemGroupHash.ContainsKey($SystemGroup.id)) { $SystemGroupHash.Add($SystemGroup.id, $SystemGroup.name) } } return $SystemGroupHash } |