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?