kuzum
asked on
change home folder path
dear experts,
I am trying to clean up our AD environment. this is what I would like to achieve:
1) search giving accounts in csv format based on Samaccount name in AD
2) change user home folder path to "local path"
3) disable the account and move user account to a specific OU called "leavers OU"
could you please help me with a PowerShell code?
I am trying to clean up our AD environment. this is what I would like to achieve:
1) search giving accounts in csv format based on Samaccount name in AD
2) change user home folder path to "local path"
3) disable the account and move user account to a specific OU called "leavers OU"
could you please help me with a PowerShell code?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I did change the code later when I read your question again after posting my comment... Change C: temp to $null
ASKER
excellent work again. thank you. much appreciated.
ASKER