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!