Skip to content

Commit

Permalink
Powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei committed Sep 8, 2023
1 parent 42a2319 commit 511f36f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions IAM/MIM/get-Users.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down

0 comments on commit 511f36f

Please sign in to comment.