Get-ADUser -Filter * -SearchBase $targetou | Foreach-Object{ $sam = $_.SamAccountName Set-ADuser -Identity $_ -HomeDrive "H:" -HomeDirectory "servershare$sam"