Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

active directory update Home folder path powershell

Get-ADUser -Filter * -SearchBase $targetou | Foreach-Object{

    $sam = $_.SamAccountName
    Set-ADuser -Identity $_ -HomeDrive "H:" -HomeDirectory "servershare$sam"
Source by social.technet.microsoft.com #
 
PREVIOUS NEXT
Tagged: #active #directory #update #Home #folder #path #powershell
ADD COMMENT
Topic
Name
3+5 =