help on login script



Hi,
Our DC is windows 2003 sp1, 90% of clients are windows XP pro. I'm changing
my login script in dos batch file to acheive this:
If login name is "frank", then run "net use y: \\server\folder".

My script is:

if %username%==frank goto dist_special
:dist_special
net use y: \\server\folder
:end

It works for any user even the login is not frank. I don't follow this. Can
anyone help me please?

Thanks in advance,
Sarah


.



Relevant Pages

  • Re: Registry Query
    ... > value exist goto a specific section of the login script if ... IF %errorlevel% GEQ 1 echo/ Not Found ... you would replace the echo with something to do. ...
    (microsoft.public.win2000.registry)
  • Re: Prohibiting Script from running on Terminal Server
    ... > I need a vb statement that exclude the login script from running on a ... I can do it in a batch file, ... You can (sans the GoTo part;-) assuming those are really the environment ... set shell = createobject ...
    (microsoft.public.windows.server.scripting)
  • copying files using in ifmember rskt util
    ... ifmember is in the login script dir ... if not errorlevel 1 goto end ...
    (microsoft.public.windows.server.scripting)
  • Re: Environment variables and paths
    ... I see it doing it in the login script but when I goto a dos prompt and ... I am trying to have a path set for users during the login script. ...
    (microsoft.public.win2000.general)
  • Re: UserInit error in event log
    ... Thanks Sarah! ... so everybody in that OU gets the error in event log. ... the login script is ... >> on each client, all the mapped drives are ok. ...
    (microsoft.public.win2000.general)