From 776aad0d235bdfbfee527be3216b4eecba5aa49f Mon Sep 17 00:00:00 2001 From: Andrei Date: Fri, 8 Sep 2023 14:47:16 +1000 Subject: [PATCH] Powershell --- IAM/MIM/get-Users.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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."