Hi guys,
Can anyone help with the following?
I'm currently trying to output to a CSV which will include a users SamAccountName, CurrentHomeDrivePath, and a third column with a NewHomeDrivePath. So look somoething like this:-
User1,\\Olddrive\user1,\\newdrive\user1
User2,\\Olddrive\user2,\\newdrive\user2
User3,\\Olddrive\user3,\\newdrive\user3
So I have a list of users (in a CSV) which I'm looping using Get-aduser and am able to get the first two columns fine. The last column is also pretty straightforward as its always going to be \\newdrive\%username%.
I just can't work out what I need to do to put that 3rd column into the output, if someone has an example to point me in the right direction it would be appreciated.