Disable list of AD Users from a CSV file.



get-content C:\temp\users.csv |get-aduser |set-aduser -enabled $false

Comments

Popular posts from this blog

Copy file to multiple remote server using powershell