12/28/2022 0 Comments Powershell join domain specific ouYou could also get a count of expired and/or non-expired.Īs with most tasks, there is usually several ways to accomplish it. I decided it would be helpful to have an object for each OU that included the OU name, distinguishedname, total number of users, total enabled users and total disabled users. With objects I can sort on a property, export to a CSV, send to a file or whatever. But this is PowerShell so we need to be thinking about objects. The test code he is posting is using Write-Host, which makes puppies cringe everywhere. I thought I’d share some of the code I posted. We got him started using the Quest AD cmdlets. The post is about counting the number of users in an OU. I’ve been following a discussion thread in the PowerShell forum at.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |