Re: Login Script

From: Oli Restorick [MVP] (oli_at_mvps.org)
Date: 12/20/04


Date: Mon, 20 Dec 2004 19:59:05 -0000

As understood the question, Scott wanted a particular user (I'm assuming a
helpdesk person) to not be a member of "Domain Admins", but to be able to be
an administrator of workstations. If so, a computer startup script is a
perfectly reasonable way of achieving a perfectly reasonable thing.

Perhaps I'm misreading the question.

Oli

"Herb Martin" <news@LearnQuick.com> wrote in message
news:%231pitFr5EHA.2568@TK2MSFTNGP10.phx.gbl...
> "scott" <sbailey@mileslumber.com> wrote in message
> news:#rT$cjp5EHA.828@TK2MSFTNGP14.phx.gbl...
>> what about a group instead of a user?
>>
>> what would that look like syntax wise?
>
> Let's go back to your original request and consider
> what you really wish to accomplish:
>
>> I'm trying to add the current user (member of DOMAIN USER GROUP) to the
>> LOCAL ADMINISTRATORS group with below code in FIGURE 1, but get error in
>
> IF someone should be a member of the Local Admistrators
> group then YOU (or a script on the DCs) should be adding
> them to the appropriate group.
>
> This isn't appropriate for a Startup or Logon script.
> (The user cannot add himself nor can the computer startup
> add a user who has not yet logged onto the computer -- as
> discussed above)
>
> If ALL users should be Admins of ALL machines (which
> is essentially what you were really going to allow -- If
> I COULD log onto a machine you were going to make me
> an Admin -- then just do that by making such a group or
> assigning the Domain Admins.
>
> Although I see this, and the original request, as poor
> practice, you likely also will likely also recognize this
> when stated as such.
>
> We could build a Startup script that would do this IF
> you can identify the users who work at each machine.
>
> --
> Herb Martin
>
>
> "scott" <sbailey@mileslumber.com> wrote in message
> news:#rT$cjp5EHA.828@TK2MSFTNGP14.phx.gbl...
>> what about a group instead of a user?
>>
>> what would that look like syntax wise?
>>
>> "Deji Akomolafe" <noemail@akomolafe.dotcom> wrote in message
>> news:ekX8Kyl5EHA.2428@TK2MSFTNGP14.phx.gbl...
>> > Ah, you are correct. Missed that :(
>> >
>> > --
>> >
>> >
>> > Sincerely,
>> >
>> > Dèjì Akómöláfé, MCSE+M MCSA+M MCP+I
>> > Microsoft MVP - Directory Services
>> > www.readymaids.com - we know IT
>> > www.akomolafe.com
>> > Do you now realize that Today is the Tomorrow you were worried about
>> > Yesterday? -anon
>> > "Herb Martin" <news@LearnQuick.com> wrote in message
>> > news:eXWiZji5EHA.2540@TK2MSFTNGP09.phx.gbl...
>> >> "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: How to change domain administrator to limited/restricted user?
    ... Depending on the number of users, computers, member servers and the rest of the infrastructure, I might be tempted to start over. ... If it's "a" domain administrator, then remove the user from the ... Are the individual users direct members of the Domain Admins group or members of a group added to the Domain Admins group. ... Check a workstation or two and see if the user is a member of the local workstation administrators group. ...
    (microsoft.public.windows.server.sbs)
  • Re: no Domain Admin rights to a Domain Server
    ... If the computer is still a member of the domain with proper DNS name ... the domain it needs to be joined to the domain again and the domain admins ... I can logon locally to the machine but the rights are that of a ... the server belongs to engineering and the person in charge ...
    (microsoft.public.win2000.security)
  • Re: Group Policy on a remote computer
    ... By default, members of Domain Admins are administrators on member computers, but not Enterprise Admins. ... The domain controller is Windows Server 2003 R2 SP2; the target computer is XP Professional SP2. ... The usual process is to create a Group Policy Object in the Domains Active Directory and link it to the OU with the target computer accounts or user accounts. ...
    (microsoft.public.windows.group_policy)
  • Re: Restricted Groups & Local Admin
    ... For the computer startup script, ... I would still lean toward using a Restricted Group policy under ... Use the "member of" portion of the restricted group policy to add domain ...
    (microsoft.public.windows.group_policy)
  • Re: Loginscript is lacking credentials.........
    ... Startup scripts run with System permissions on the local machine and ... Startup script configured by a group policy to add a domain group to the ... not already a member, use the Add method to add the domain group to the ...
    (microsoft.public.windows.server.active_directory)