diff --git a/IAM/MIM/get-Users.ps1 b/IAM/MIM/get-Users.ps1 index 443dd30..58a08b7 100644 --- a/IAM/MIM/get-Users.ps1 +++ b/IAM/MIM/get-Users.ps1 @@ -8,8 +8,7 @@ Write-Host "Output file name: $OutputLogFileName" # Search for user objects in LithnetRMA Write-Host "Searching for user objects..." -$users = Search-Resources -XPath "/Person" -AttributesToGet @("ObjectID","toyUID","toyWorkforceID","DisplayName","AccountName","title","FirstName","MiddleName","LastName","Domain","ebusBirthDate","JobTitle","ebusStartDate","ebusTerminationDate","Manager","TelephoneNumber","MobilePhone","Email","Company","City","Address","Region","Locale","msidmPamLinkedUser","ebusRoles","siteLocation","sourceou","toyIsK","toyIsDealer","toyCN","toyDealerCompanyRef","toyOUreference","toywmMasterOfGroups","eBusVirtualEntity") --SortAttributes @("AccountName") +$users = Search-Resources -XPath "/Person" -AttributesToGet @("ObjectID","toyUID","toyWorkforceID","DisplayName","AccountName","title","FirstName","MiddleName","LastName","Domain","ebusBirthDate","JobTitle","ebusStartDate","ebusTerminationDate","Manager","TelephoneNumber","MobilePhone","Email","Company","City","Address","Region","Locale","msidmPamLinkedUser","ebusRoles","siteLocation","sourceou","toyIsK","toyIsDealer","toyCN","toyDealerCompanyRef","toyOUreference","toywmMasterOfGroups","eBusVirtualEntity") -SortAttributes @("AccountName") Write-Host "Found $($users.Count) user objects."