jtcdesigns
IS-IT--Management
I have recently come across a new project at work. I and setting people up in groups in our active directory server and I would like to automatically map someone's my documents folder to a new location other than local. Currently I just do it manually. I was wondering I would need a script to acknowledge what the username is that the person is logged into and then do an if then else statement for example
if username = steve then
move documents target to steve's folder
elseif username = jane then
move documents target to jane's folder
end if
Of course that isn't the code I just want to give an example of what I want to do. I have seen scripts to find a username but I haven't seen a script to move the target of the documents folder. I of course will be looking that up soon but I was just wondering if this is the best way to do it or is there an easier way that what I imagine?
if username = steve then
move documents target to steve's folder
elseif username = jane then
move documents target to jane's folder
end if
Of course that isn't the code I just want to give an example of what I want to do. I have seen scripts to find a username but I haven't seen a script to move the target of the documents folder. I of course will be looking that up soon but I was just wondering if this is the best way to do it or is there an easier way that what I imagine?