Networking Forums

Networking Forums > Computer Networking > Windows Networking > XP Pro login scripts problem

Reply
Thread Tools Display Modes

XP Pro login scripts problem

 
 
Angus
Guest
Posts: n/a

 
      08-17-2004, 11:23 AM
We are upgrading our desktops to Windows XP Pro. Our server is running
Solaris 7 and using Samba 2.0.3 to communicate with the PC's in our
workgroup (this will hopefully soon be upgraded to a domain).

Our existing Windows 95/98 PC's use a login script that takes their
login username and password to connect to the mapped network drives.

We want to use a similar script for the XP Pro machines that takes the
login information and connects to the mapped network drives. The
problem we are encountering is only the username is being passed by
the script with the DOS script window prompting for the associated
password every time.

Is there a way to get around this as it is vital to the rollout of our
network.


Code:
@ECHO OFF

ECHO:
ECHO ---------------------------------
ECHO:
ECHO Reconnecting network drives...
ECHO:
net use X: \\[server name]\[folder name] /user:%username% /YES
net use Y: \\[server name]\[folder name] /user:%username% /YES
net use Z: \\[server name]\[folder name] /user:%username% /YES

:: ###########################################################################
###

:NoFile
ECHO:
ECHO           ----------------------------------------
ECHO           There seems to be an error in your Login
ECHO                           ------
ECHO You may have made an error typing your user name or password.
ECHO Restart your computer and try again, making sure that you
ECHO type both of them correctly.
ECHO                           ------
ECHO You can close this window by pressing any key.
ECHO:
PAUSE

:: ###########################################################################
###

:EndScript
EXIT
The username is being prefixed with the machine name and this is what
seems to be causing the problems (this doesn't happen in Win 95/98).

Help!
 
Reply With Quote
 
 
 
 
netneg
Guest
Posts: n/a

 
      08-17-2004, 01:18 PM
Angus-

Try putting your DOMAIN Name or WG before your variable, this will fix your
machine name prepending the username.

net use X: \\[server name]\[folder name] /userOMAIN\%username% /YES

I'm a little confused where you talk about sending the password to connect
to the shares. If the share is setup correctly, the login credentials will
be passed for share authentication.


"Angus" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> We are upgrading our desktops to Windows XP Pro. Our server is running
> Solaris 7 and using Samba 2.0.3 to communicate with the PC's in our
> workgroup (this will hopefully soon be upgraded to a domain).
>
> Our existing Windows 95/98 PC's use a login script that takes their
> login username and password to connect to the mapped network drives.
>
> We want to use a similar script for the XP Pro machines that takes the
> login information and connects to the mapped network drives. The
> problem we are encountering is only the username is being passed by
> the script with the DOS script window prompting for the associated
> password every time.
>
> Is there a way to get around this as it is vital to the rollout of our
> network.
>
>
>
Code:
> @ECHO OFF
>
> ECHO:
> ECHO ---------------------------------
> ECHO:
> ECHO Reconnecting network drives...
> ECHO:
> net use X: \\[server name]\[folder name] /user:%username% /YES
> net use Y: \\[server name]\[folder name] /user:%username% /YES
> net use Z: \\[server name]\[folder name] /user:%username% /YES
>
> ::
Code:
###########################################################################
>  ###
>
> :NoFile
> ECHO:
> ECHO           ----------------------------------------
> ECHO           There seems to be an error in your Login
> ECHO                           ------
> ECHO You may have made an error typing your user name or password.
> ECHO Restart your computer and try again, making sure that you
> ECHO type both of them correctly.
> ECHO                           ------
> ECHO You can close this window by pressing any key.
> ECHO:
> PAUSE
>
> ::
###########################################################################
>  ###
>
> :EndScript
> EXIT
> 

>
> The username is being prefixed with the machine name and this is what
> seems to be causing the problems (this doesn't happen in Win 95/98).
>
> Help!



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Scripts Through VPN Jason4101 Windows Networking 4 04-12-2008 02:40 PM
Login Scripts =?Utf-8?B?Um9zZQ==?= Windows Networking 1 03-17-2005 09:08 PM
login scripts andy Windows Networking 0 08-12-2004 12:39 PM
Login scripts Joe Windows Networking 3 06-18-2004 11:58 AM
Login Scripts Jerry Windows Networking 4 02-13-2004 06:25 PM



1 2 3 4 5 6 7 8 9 10 11