PowerShell – Change homedirectory permissions in bulk.
Recently I was asked to change the homedirectory permissions for >4000 users from Full Control, to ready only. I’ve used below powershell commands to achieve this. Firstly we need to get all SamAccountName’s in a .csv list. (Change the searchbase). Get-ADUser -Filter * -SearchBase “OU=www,DC=iterrors,DC=com” | Where { $_.Enabled -eq $True} | select SamAccountName | […]
Read More »