Tyler S
Tyler S

Reputation: 877

Active Directory Change Home Folder Path using Power Shell

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?

enter image description here

Upvotes: 0

Views: 2711

Answers (1)

Ansgar Wiechers
Ansgar Wiechers

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

Related Questions