Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Login Script

Status
Not open for further replies.

krenkey

IS-IT--Management
Apr 7, 2006
71
CA
Good Day Folks, i am in a little bit of a pinch. I have been reading countless articles on how to make a login script to simply map network drives, and assign a single printer. We currently run domain controlled windows 2003 with xp desktops. As well currently i use a bat file to control the login script and connect to the network drives. My limited knowledge of scripting is hindering my process. any help would be appreciated.
 
I think my FAQ shold be of help to you.

faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Thank you for replying markdmac i have looked carefully at youre faq. I do have a question, which part or parts would i have to edit to make it suitable for my environment. IE:

'Map drives needed by all
'Note the first command uses the user name as a variable to map to a user share.
WSHNetwork.MapNetworkDrive "H:", "\\server\users\" & UserString,True
WSHNetwork.MapNetworkDrive "U:", "\\server\users",True
WSHNetwork.MapNetworkDrive "X:", "\\server\executables",True

this is an example snippet, so i would change the server to the server name and the drive letter to the letter we use correct.
 
Correct. You should not that in the example the H drive is also building the path to include the user name in case you need to map a drive like that. The other two examples show more generic mappings.

I hope you find this post helpful.

Regards,

Mark
 
ok thankyou, all i require is the basic drive mappingand because my scripting skills are poor i will have to learn more.
 
Thank You so much, after fiddling around with it for a while, and re-doing my group memberships i was able to get it to work. You are doing a great job Mark
 
I'm trying to use the script from the FAQ also. We have a small network of about 12 machines so I elected to add the per user drives rather than groups. Other than that I used the same code as the standard setup and I still get a syntax error.
Can I post the code or email it to someone for verification?
 
Sure, best to start your own thread jtutnc. Put my name in the subject and I'll give you a hand.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top