Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Counting all objects in AD is not updated after adding a user

$
0
0

Hi

I am running the command to count all of my AD objects

The question is, why when running the command after adding a user, it does not get updated in the following command:

 Get-ADObject -Filter {name -like '*'} -SearchBase 'CN=Schema,CN=Configuration,DC=Fabrikam,DC=local' -ResultSetSize $null | Measure-Object

While if running the following command there is an update

Get-ADObject -Filter {name -like '*'}  -SearchBase 'DC=Fabrikam,DC=local' -ResultSetSize $null | Measure-Object

Thanks

Itamar




Viewing all articles
Browse latest Browse all 21975

Trending Articles