Hello,
I am trying to modify many users Profile Path using Quest commands :
The command I am using is :
Get-QADUser -SearchRoot 'COMPANY/OU1/Users'|%{$_.TsProfilePath ='\\fileServer\%username%$' + $_.sAMAccountName;$_.CommitChanges();}
This command run successfully, but nothing get changed in ADUC view and ADSIEDIT neither.
Another way to do :
$users = Get-QADUser -SearchRoot 'COMPANY/OU1//Users'
foreach ($u in $users)
{$u.TsProfilePath = '\\fileserver\%username%$' + $u.sAMAccountName; $u.CommitChanges()}
This scripts runs also without errors, but nothing get change in ADUC view and ADSIEDIT.
I would like to modify, also, if it's possible via the same script the path to the drive U ( see the attached picture )
am I missing something ?
Thank you.