Delete Multiple AD users (List of users with SamAccountName are in csv file ) using below Powershell script.



Import-Csv C:\temp\Del.csv | Foreach-Object {Remove-ADUser -Identity $_.SamAccountName -Confirm:$False }

Comments

Popular posts from this blog

Copy file to multiple remote server using powershell