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

scripting a new share

Status
Not open for further replies.

iamapollo

MIS
Aug 22, 2001
38
AU
Hi

I have not done a lot of scripting but I need a small logon script that just
maps a network share to a particular drive letter every time the user logs
on.

Could someone tell me how to do that?

Thanks

Michael

 
Your best bet is actually to use a batch file. Scripting a login share is just too complex, so create a batch file and store it in the NETLOGIN shared drive under the scripts subfolder (which is a couple of folder into the file)

** REM DRIVE ASSIGNMENT **
NET USE <DRIVE LETTER> \\<server name>\<shared folder>

ie:

NET USE T: \\HQ-SRV-01\shared

That should solve your problem... Any more, email me.
 
Hi

Thankyou for your assistance, I thought it would be a simple process. The scripts subfolder that you mentioned, where is this located? and is it at the server or does it have to be put on every clients machine?

Thanks

Michael
 
Login to the server as administrator, then go to network neighbourhood and select NETLOGIN shared drive. Within that you will find at least one subfolder, the name of which escapes me, but within it are two subfolders, policies and scripts. You must put the batch file within the scripts folder and then point to that file with the logon option in the group policy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top