PowerShell Script Help to Setup Domain Users Home Drives
Posted on 2014-10-27
I have a simple PowerShell Script that does work but it only works for individual user names, was hoping to get assistance on setting it up for all Domain Users.
Set-ADUser -identity "UserName" -homeDrive h: -homeDir "\\ServerName\User$"
We currently have all Home Drive's being mapped via Logon Scripts but we are migrating over to DFS instead. In turn I need to add the new share locations once it is ready for all users in the domain.
There will be multiple share locations but I was thinking the easiest way would be to use share name itself once completed.
Thanks again for your help.