Answers for "active directory update Home folder path powershell"

0

active directory update Home folder path powershell

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

    $sam = $_.SamAccountName
    Set-ADuser -Identity $_ -HomeDrive "H:" -HomeDirectory "\servershare$sam"
Posted by: Guest on October-30-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language