Environment variables for first name and last name
Hi,
Is it possible to set environment variables for users first name and last name in Server 2008 R2?
If yes, how is it done?
September 24th, 2010 5:40am
Hi,
you can use a script like that reported here
http://www.petri.co.il/forums/showthread.php?t=27867
HTHEdoardo Benussi - Microsoft MVP
Management Infrastructure - Systems Administration
https://mvp.support.microsoft.com/Profile/Benussi
Windows Server Italian Forum Moderator
edo[at]mvps[dot]org
Free Windows Admin Tool Kit Click here and download it now
September 24th, 2010 6:59am
Hi Edoardo and thanks for your reply!
How would a server and scripting noob like me use a script like that in practice in a scenario like this:
- I have a bunch of folders named Last name First name on a network share.
- I want to map every user their own folder on logon
- I already have a logon batch file that maps the right network share to every user:
net use x: \\server\share\
exit
- What I'm missing now, is a way to map them to their own folders sort of like
- net use x: \\server\share\%lastname% %firstname\
September 24th, 2010 7:51am
you could rename folders in a way that you can use the variable %username% in you script.Edoardo Benussi - Microsoft MVP
Management Infrastructure - Systems Administration
https://mvp.support.microsoft.com/Profile/Benussi
Windows Server Italian Forum Moderator
edo[at]mvps[dot]org
Free Windows Admin Tool Kit Click here and download it now
September 24th, 2010 8:12am
Yep, thought of that as well, but there's like gazillion of them! :D
Thanks for your help anyway, I'll have to look into scripting or start renaming those folders.
Oo
September 24th, 2010 9:00am