Re: Setting Act As Part of Operating System - VBScript

From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 02/26/05


Date: Fri, 25 Feb 2005 18:11:17 -0700

I will also say that this sounds like a bad thing to do.

That said, there is no direct way to grant user rights to accounts
from script in Windows 2000 and later. You can however
shell out to an execution of such as NTrights.exe from the
resource kit. User Rights are policies, and there is no script
interface for setting the values of policies.

-- 
Roger Abell
Microsoft MVP (Windows  Security)
MCSE (W2k3,W2k,Nt4)  MCDBA
"Jason" <Jason@discussions.microsoft.com> wrote in message
news:ACF5AD77-66DA-4135-95A9-FA9B9ED759DB@microsoft.com...
> I only want it for one user.  How do I do this in VBScript?  Once again
I'm a
> newbie to VBScripting.
>
> "Herb Martin" wrote:
>
> > "Jason" <Jason@discussions.microsoft.com> wrote in message
> > news:8ACA55EB-0E77-4123-89E2-0C237A46D8E8@microsoft.com...
> > > I would like to be able to set any given user that I just created to
have
> > the
> > > right "Act as part of the operating system" using a VBSCript.  I'm a
> > complete
> > > newbie to VBScripting and I'm told this would be the only way to get
this
> > > functionality into my installshield.  Any suggestions?
> >
> > Sounds like a bad idea but you can give this right
> > to a user or group (where you create the security
> > principal.)
> >
> > A Group Policy can also do this.
> >
> > -- 
> > Herb Martin
> >
> >
> >
> >


Relevant Pages

  • Re: Setting Act As Part of Operating System - VBScript
    ... Herb Martin> "Herb Martin" wrote: ... >>> newbie to VBScripting and I'm told this would be the only way to get this>>> functionality into my installshield. ... >> A Group Policy can also do this. ...
    (microsoft.public.win2000.security)
  • Re: Setting Act As Part of Operating System - VBScript
    ... "Herb Martin" wrote: ... >> newbie to VBScripting and I'm told this would be the only way to get this ... > A Group Policy can also do this. ...
    (microsoft.public.win2000.security)
  • RE: Re-installed XP Pro - admin accounts now blocked
    ... I would start by checking group policy to make sure the administrators ... User Rights Assignments. ... <10 days ago I performed a repair installation of XP Pro after upgrading ...
    (microsoft.public.windowsxp.setup_deployment)
  • RE: User viewing only their own drive/folder in XP Home
    ... you will need to implement Group Policy. ... Windows XP Home Edition does not have Group Policy, ... Windows XP Professional Edition to implement Group Policy. ... Group Policy set user rights. ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Blocking Cleint Games
    ... play Pac-man. ... phones, ceiling tiles, or whiskey! ... don't have local admin or power user rights on their workstations. ... Otherwise, group policy is definitely what you need here, if you're ...
    (microsoft.public.windows.server.sbs)