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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

netlogon script

Status
Not open for further replies.

eperrier

IS-IT--Management
Mar 13, 2004
22
US
I would like to create the script using the .bat file way can someone help

Thanks Ed
 
I want to be able users when they logon it automaticly maps there drives and printers and thier folders.
 
Do you have Active Directory? If so go with a VBS file instead. The code is simple. Here is all you need.

This shows you how to both add and delete a mapped drive.

Set WSHNetwork = CreateObject("WScript.Network")
WSHNetwork.RemoveNetworkDrive "X:"
wscript.sleep 300
WSHNetwork.MapNetworkDrive "X:", "\\server\executables",True

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Do you have anything started on your bat file that you need help with? Are you getting any errors or do you not have anything yet?

If you are still trying to learn the commands for using a bat file, then do a search on google for bat file commands... you will find a ton of pages with all the commands you need.

If you have any specific questions then please ask, I cant just write the whole bat file for you because no one knows what you need except you.
 
If it helps I use a batch file for mapping drives and stuff manually at work. Reason: I'm a local user (contractor) but have admin rights and every time I Switch machines I need to remap drives.



----------------------------
Cogito Ergo Sum [jester2]
----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top