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.