Reputation: 877
I am trying to change the Home Folder Path and assign it a letter using power shell. I am currently using set-aduser in powershell to change the other parameters in AD. How do you assign it a drive Letter and also assign the Path as well?
Upvotes: 0
Views: 2711
Reputation: 200293
When in doubt, read the documentation. The Set-ADUser
parameters you're looking for are -HomeDirectory
and -HomeDrive
:
Set-ADUser -Identity username -HomeDrive 'P:' -HomeDirectory '\\server\share\username'
Upvotes: 2