RE: Help for Windows Vista.



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?

"James" wrote:

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


"SorenH" wrote:

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

@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


"James" wrote:

Can you post the Script? Many people can help you here, I think.

"SorenH" wrote:

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. :o(

hope you understand my question :o)

regards Soren

"James" wrote:

Hello Soren,

Did you run the Script as Administrator?
Click here to learn to automatically launch the script as administrator
in windows Vista.

http://unlockforus.blogspot.com/2008/06/how-to-run-scripts-as-administrator-in.html

Reply to us if you find another solution. thanks.

"SorenH" wrote:

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?


.



Relevant Pages

  • Re: script log file (how)
    ... The problem with my original script was that it didn't keep any logs of what ... echo copy files into archive ... if %1$==$ GOTO:Error ... REM instead of GEQ you could substitute: ...
    (microsoft.public.windows.server.scripting)
  • Re: script log file (how)
    ... Maybe I'll just have the script ... create log archives after they grow to a certain size and purge the oldest ... echo copy files into archive ... REM instead of GEQ you could substitute: ...
    (microsoft.public.windows.server.scripting)
  • Re: COMMAND SHELL PROGRAMMING.
    ... The first comment claims to get user's input but never prompts for ... Another comment claims to delete the script file but only empties it. ... Long ago I read:REM is quicker then REM. ... Echo some text here>outputfile.txt ...
    (bit.listserv.ibm-main)
  • Re: Printer Starup Script successfull for Win2k, but not for XP
    ... So I used the NT Resource Kit file "con2prt.exe" and the following script: ... @echo off ... REM Script is to set up printers on users ... REM workstations ...
    (microsoft.public.windows.server.scripting)
  • RE: Help for Windows Vista.
    ... just add a username and password to your command. ... Echo Loggin into our company ... REM *** drev w ... Did you run the Script as Administrator? ...
    (microsoft.public.windows.vista.general)