Saturday, 3 July 2021

How to remove Bulk computer Object from the Group using PowerShell

How to remove Bulk computer Object from the Group using PowerShell


File Format




$Computers= Get-Content C:\Temp\ADComputer.txt | Get-ADComputer -ErrorAction Continue

Remove-ADGroupMember -Identity GROUPNAME -Member $Computers

1 comment:

  1. spell mistake update this one -------ErrorAction Continue

    ReplyDelete