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

logon script

Status
Not open for further replies.

theboy69

IS-IT--Management
Aug 24, 2005
6
I was wondering if there was any way to use the field "logon script" under user properties in XP to run a script to map a network drive (we don't run a domain). my boss (who knows little about pc's) insists on not having to click on the mapped drive and put a password in every time he logs on. I have tried creating a script and putting the path in this field but it give me an error "path is not a valid relative path name....." here's my script

Code:
WSHNetwork.MapNetworkDrive "I:", "\\192.168.25.151\software",True

any help would be greatly appreciated. the drive is going to a SunOS 5.8 box.
 
To reconnect to the mapped drive every time you log on, select the Reconnect at logon check box.
 
i should be a little clearer:
ritht click on "my computer" (not mine, yours) lol
select "map network drive"
enter the drive you want to map
check the box "reconnect at logon"

 
i have this same scenario on my network, and it works ok. it maps the drives every time client pc's logon.
 
i've done that...it works fine on all of my 2k machines but not XP.
 
Samba is loaded correct?

This might help:




This should get to the username/password issue with the script:


You would need to adjust, but you need to get the other issues figured out first. Have you attempted the "net use" command?
 
Add his username and password to the XP machine and it will reconnect without ever asking for a password.

Bo

Kentucky phone support-
"Mash the Kentrol key and hit scape."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top