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!

xp and mapping script

Status
Not open for further replies.

groovyfill

IS-IT--Management
May 21, 2003
39
BE
hi,

i have some problems with my xp clients on the domain .
pdc = w2kserver

normaly i use a mapping network drive script ,...
it seems 2 work on my w2k workstations but not on the win XP clients ...is there a difference between xp and w2k for this issue ?

how can i make it work
and can somebody show me a good script ...so that i can base myself on it ?

thnks alot

greetz


 
Make sure the xp clients have the netbui protocol loaded.
 
ok ...it works now on the xp clients BUT.......


every time the users must type there name and pass for the server ......is there any way to skip this ?

users allready typed name and pass with logon ...2 times would b to much ..


anyone have an idea ?

greetz groovy ..


thanks
 
Can you show us your current script?

Also, you do not need NETBEUI to do this.
 
so here is my logon batch file

yes idd i did it without the netbui ...

thanks

@echo off
echo je bent aangemeld onder deze gebruikersnaam %username%
echo je bent aangemeld op deze computer %computername%
echo bezig met je netwerkverbindingen op te stellen... ...
net use i: \\Sbs\A_Team
net use j: \\Sbs\B_Team
net use k: \\Sbs\C_Team
net use l: \\Sbs\D_Team
net use m: \\Sbs\MedischeDienst
net use n: \\Sbs\Coordinatie
net use o: \\Sbs\Secretariaat
net use q: \\Sbs\staf
net use u: \\Sbs\Algemeen
net use t: \\Sbs\consult
net use g: \\Sbs\School
net use p: \\Sbs\AMA
net time \\Sbs /set

echo done


 
try putting PAUSE after all your net use statements to see what kind of error you are getting.

net use p: \\Sbs\AMA
PAUSE
net time \\sbs /set
 
ok did that ....gives system error 5

access denied


strange ...name and pass are ok ...

but why do i or they have to fill in a name and password ?

normaly when i use "net use" from command prompt to map a network drive it doesnt ask for a name or pass

what am i doing wrong ?


greetz

groovy
 
are you sure they are a member of the domain and/or are definately logging onto the domain and not the local workstation.

if that was the case the login script wouldnt run-- unless youve manually mapped the drives or stuck the batch script in their startup folder.

also check they have the servers DNS address in their config

MCSE NT&2K,CCNA/CCDA,CNA,ASE,NSP

If your going to post-- say somthing instead of Googling a URL link

 
What about adding /yes or even /persistent:yes at the end of each statement?
 
hmmmm ..

users are defenatly logged on on the domain .(not localy)

i will try adding /yes but i don't think it will help .

why does he ask for name and pass ?

it even happens when i log in with a user with administrators right's ....

greetz

groovy



 
tryed adding /yes ..doesn't solve it just as i tought .


does anyone have an idea ????


 
is it running asyncronously or syncronously? i remember something about using the logon scripts in ad that if you have more than one they all run at the same time unless you specify otherwise. can someone with a little more experience give more info, maybe this is the cause. Thanks!
 
the meaning is that every team has his own loggon script

at the moment it looks like this

\\SBS\Clients\Setup\SBSCLNT.exe /s SBS
@echo off
echo je bent aangemeld onder deze gebruikersnaam %username%
echo je bent aangemeld op deze computer %computername%
net use i: \\Sbs\A_Team /yes
net use j: \\Sbs\B_Team /yes
net use k: \\Sbs\C_Team /yes
net use l: \\Sbs\D_Team /yes
net use m: \\Sbs\MedischeDienst /yes
net use n: \\Sbs\Coordinatie /yes
net use o: \\Sbs\Secretariaat /yes
net use q: \\Sbs\staf /yes
net use u: \\Sbs\Algemeen /yes
net use t: \\Sbs\consult /yes
net use g: \\Sbs\School /yes
net use p: \\Sbs\AMA
net time \\Sbs /set /yes

echo done

but when you logged in into the xp client the command promt stays open in the left corner ...users must type in name and pass ? what they allready did when they logged on on the xp client (loggin on the domain not localy)


i tried to change the logon script for the administrator acount ...and the same story ...he still asks for the name and password and when i type it he again says system error 5 access denied ....but eventualy he makes the mapped network drives !!!! even with wrong name and pass !


anyone have an iedea ?



 
groovyfill,

Are you saying that the users have to enter there username and password everytime they try to access the mapped drive?? If you are try, creating an account on the 2k or XP machine that is identical to the one they use for the domain. I know that solved some printing issues I hade once.

Mike
 
no not everytime they want to access the map ...

but when they log in they see right next to the start menu the command promt in the task bar ...it stays flickering because it can not continue .... reason : need user name and password ...no mather witch username or password i use ...EVEN from the administrator ...he gives a system error 5 "access denied" ...BUT altough he makes the mapped drives !! .....

but the error is that users have to type there login and pass 2 times .

someone have any ideas ?

greetz

groovy
 
Does EVERY user get the same Access Denied message on the same drives? Can they actually access the drives after that?

Try re-adding the PC to the domain; check access rights on the folders etc etc.

That error usually occurs when the machine is not part of the domain, but tries to access shares on it. All sounds like the original password is the local one, not the domain one.
 
shearergol

nope sorry man , same problem on all 45 clients ...eventualy they can acces the drives
and yes every user gets the same error in the command prompt(when the script runs)
even the administrator

greetz


groovy
 
Take out the lines which contain the errors, and see if it still asks for the username and password again.
 
How about enabling auditing on one of the shares to see what's happening?

What happens if you don't run the script on a machine and attempt map a drive through the GUI? (right click share then Map network drive)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top