Re: Login Script

From: Herb Martin (news_at_LearnQuick.com)
Date: 12/20/04


Date: Sun, 19 Dec 2004 18:07:53 -0600


"Deji Akomolafe" <noemail@akomolafe.dotcom> wrote in message
news:uDSajUi5EHA.2624@TK2MSFTNGP11.phx.gbl...
> the variable is %username%. So your syntax would be:
>
> net localgroup administrators yourdomainname\%username% /ADD
>
> That would add ANY user that logs into the computer into the
administrators'
> group IF you are using Machine Startup Script through a GPO as suggested
by
> Oli. This may be something you want to do in a controlled fashion.

Sorry, this will not work as expected.

At the time that a Computer Startup Script runs, there is
NO user and the %username% variable is holds no value.



Relevant Pages

  • Re: Login Script
    ... >> net localgroup administrators yourdomainname\%username% /ADD ... >> group IF you are using Machine Startup Script through a GPO as suggested ... > At the time that a Computer Startup Script runs, ... > NO user and the %username% variable is holds no value. ...
    (microsoft.public.win2000.active_directory)
  • Re: Folder link
    ... You'll have to copy the file to the desktops. ... ' of the %username% user profile. ... You won't need to use %USERNAME% if you take the startup script - you should ...
    (microsoft.public.win2000.active_directory)