[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4333
  • Last Modified:

Powershell returned object limit

Hi the script i am using has a limit of 1000 objects i need to have this set to unlimited
Get-QADUser -SearchRoot "OU=Accounts,DC=europe,DC=domain,DC=com" | Group-Object ParentContainerDN | Sort Count -descending | Select Name, Count >> C:\Users\admin\Documents\users.csv

Open in new window

0
davidm27
Asked:
davidm27
  • 2
1 Solution
 
fatnasa2010Commented:
you have to add -resultsize unlimited
Get-QADUser  -resultsize unlimited -SearchRoot "OU=Accounts,DC=europe,DC=domain,DC=com" | Group-Object ParentContainerDN | Sort Count -descending | Select Name, Count >> C:\Users\admin\Documents\users.csv

Open in new window

0
 
fatnasa2010Commented:
correction :

you have to add -SizeLimit 0
Get-QADUser  -SizeLimit 0 -SearchRoot "OU=Accounts,DC=europe,DC=domain,DC=com" | Group-Object ParentContainerDN | Sort Count -descending | Select Name, Count >> C:\Users\admin\Documents\users.csv

Open in new window

0
 
davidm27Author Commented:
thanks worked a treat
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now