• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4973
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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