Link to home
Start Free TrialLog in
Avatar of SAM IT
SAM IT

asked on

Set-ADUser -Clear HomeDirectory

Hello,

using below command line I can clear AD ID home folder path and set it to local path. I tried this script to execute on multiple users using import-csv with some variable , but its giving an error $importusers = get-content "C:\Users\Administrator\Desktop\new requriment\input.csv" |Set-ADUser $importusers -Clear HomeDirectory
Set-ADUser : Cannot validate argument on parameter 'Identity'. The argument is null. Supply a non-null argument and try the command again

Thanks in advance

Set-ADUser testuser -Clear HomeDirectory

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of SAM IT
SAM IT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of footech
@SAM IT - You should either provide your solution, or delete the question.  Otherwise, this question is of no value.