Hi,
I want to remove the AD User from local Amin group on the client machine. with power shell script.
Get-LocalGroupMember -Group 'Administrators' | Where {$_.objectclass -like 'User'} | Remove-LocalGroupMember Administrators
or
$remote-comp = 'test1'
Invoke-Command -ComputerName $remote-comp -ScriptBlock {
Get-LocalGroupMember -Group 'Administrators' | Where {$_.objectclass -like 'User'} | Remove-LocalGroupMember Administrators
But I have 100 AD Users on 100 different client machine.
Is there any way to do that in one step? for example with a CSV file?
Regards