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

How to delete empty OUs through command?

$
0
0

I work in a bank and there are a thousands of users with around thousand OUs so i got task to delete empty OUs but its a lot of OUs so its hard to delete manually one by one so please can anyone tell me powershell command so first i can get list of empty OUs and then delete all empty OUs through one command in powershell ? 

Hope anyone can help me out.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>