PowerShell for Windows Admins

Jun 30 2015   10:00AM GMT

Removing HomeDrive and HomeFolder settings

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Active Directory

Back in this post https://richardspowershellblog.wordpress.com/wp-admin/post.php?post=2343&action=edit I showed how to set the users home directory and home drive.

I was recently asked how to remove entries from those attributes.

The easiest way is to use the –Clear parameter with set-AdUser

Set-ADUser -Identity gdreen -Clear HomeDrive, HomeDirectory

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: