Hi
I have a list of user which I need to change the home drive path - I am starting from this script and I would like to use a foreach command but I can't my head around:
Get-ADUser -filter {homedirectory -like "*domainname*\homefolders*"} -property homedirectory | select Name, Samaccountname, homedirectory
The home drive is set to DFS path which I am changing back to point to the file server name - so the path on AD Users Account should be: \\FPS01\homefolders\%username%
How can I make a foreach command to change the path please?
Maelito
Maelito