Help for Windows Vista.

S

SorenH

Hi All.

I have a problem with vista regards to script, in old days i installed XP on
my clients and the map drive script worked fine without any problems, but now
i have vista clients, when i run the script it keep asking me for a username
and password to every singel map drive, i don't get it why is it asking me
for a user and pass, and when im typing the user and pass it says it an
incorrect network pass, any one who can help me?
 
S

SorenH

Hi James.

thanks for quickly reply, yes i am log on with administrative rights, and
have also tried to rigth click the batch fil, and make sure the i was running
as an administrator, (Run administrator).

The weird thing is that it ask for an username and password, to every singel
drive, when i writen down the admin/pass for that server the drive is on it
say incorrect network password, i really don't get it, could it be some
security issue, in vista or is it somthing on the server.

Btw the script is running on a w2k.

it is only with vista i have the problem if i take a XP pro client it work
no question ask, but the problems come when i try with vista. :blush:(

hope you understand my question :blush:)

regards Soren
 
S

SorenH

Here is the script we use again i work fine with XP but not on vista. :blush:)

@Echo off
color 1F
Echo.
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Echo.
Echo Loggin into our company
echo Welcome %username% ...
Echo.
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Echo.
Echo.
Echo.
cls
Echo.
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Echo.
Echo Removing Network Drives
Echo.
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
rem net use j: /DELETE

REM *** drev w
REM net use w: /DELETE
REM ***

net use k: /DELETE
net use l: /DELETE
net use g: /DELETE
net use h: /DELETE
net use i: /DELETE
net use q: /DELETE
net use s: /DELETE
net use x: /DELETE
net use t: /DELETE
cls
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
echo.
echo Mapping Network Drives
echo.
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Net use K: \\server\folder ("this drive did not work" format "FAT")
Net use g: \\server\folder ("this drive did not work" format "FAT")
Net Use h: \\server\folder ("this drive did not work" format "FAT")
Net use x: \\server\folder ("this drive did not work" format "FAT")
Net use z: \\server\folder ("This drive worked" format"NTFS")
rem Net use t: \\server\folder


rem echo.
rem cls
rem echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
rem echo.
rem echo Mapping Network Printers
rem echo.
rem echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
rem net use lpt4: \\server\printer
rem net use lpt5: \\server\printer
rem net use lpt6: \\server\printer
rem echo.

cls
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
echo.
echo Copying company signatur
echo.
echo *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
xcopy \\server\folder\%username%\*.* c:\ /y

:END
 
J

James

open cmd
type: net use /?
to view the syntax
just add a username and password to your command.
 
S

SorenH

Hi James.

Can you please show what you mean?

Net use drive letter:\\server\folder <--is it in this syntax you want me to
add an username and password?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top