To remove filtered Computer from active directory

Post Reply
Nawing1
Posts: 76
Joined: 21 Feb 2016 14:55

To remove filtered Computer from active directory

Post by Nawing1 » 03 Mar 2016 15:35

Hi,

You can filter computer , and remove from active directory from one line command.

Get-ADComputer -Filter 'Location -eq "head office"' | Remove-ADComputer -confirm:$false



EmileDic
Posts: 2
Joined: 27 Sep 2019 13:33

To remove filtered Computer from active directory

Post by EmileDic » 13 Oct 2019 03:33

Q: How to get user details from Active Directory?

A: This example gets NT user name and domain name. Then it opens particular AD object and reads user information.

Code:

Post Reply