Link to home
Start Free TrialLog in
Avatar of robertarenson
robertarenson

asked on

PowerShell Script Help to Setup Domain Users Home Drives

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.
ASKER CERTIFIED SOLUTION
Avatar of becraig
becraig
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of robertarenson
robertarenson

ASKER

Thank you very much