Re: Setting Act As Part of Operating System - VBScript

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


Date: Sat, 26 Feb 2005 07:23:16 -0700

Herb,

I regularly give the news in the scripting NG.
There is no programmatic interface available to script
for setting the value of a policy, including User Rights.
It can be done from lower-level like C++ for rights,
but in general there is no public API set for manipulating
the values of policies.

-- 
Roger Abell
Microsoft MVP (Windows  Security)
MCSE (W2k3,W2k,Nt4)  MCDBA
"Herb Martin" <news@LearnQuick.com> wrote in message
news:OiAoAp6GFHA.3536@TK2MSFTNGP14.phx.gbl...
> "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.
> >
>
> You might do better posting such a question
> to a scripting/VBS/adsi forum.
>
> I could go look it up but don't know how to
> do it off the top of my head like some of those
> folks might.
>
> My first approach would be to search MS Dev
> areas using Google with something like:
>
>     [ vbscript assign rights users site:microsoft.com ]
>
> Or even site:msdn.microsoft.com  or maybe microsoft:
>
> I would also check the ADSI Scriptomatic (stick those
> words into the site searchs above instead of the other
> key words -- or in addition.)
>
>
> -- 
> Herb Martin
>
>
> > "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: Restrict Users from Installing programs
    ... Herb Martin wrote: ... >> The first thing I'd suggest is that you take away their local admin ... Do they need such rights to run any of their software? ... policy of the company. ...
    (microsoft.public.win2000.networking)
  • Re: js.seeker and browser screw up
    ... A new toolbar flashed up briefly and then disappeared. ... respect the rights of "fellow vendors" to make a buck? ... Unless a site needs scripting to log you in or something, ... Netscape can't prompt you, so I set up Netscape 7.0 to allow ...
    (alt.computer.security)
  • Re: WMI and WinXP SP2?
    ... you can configure the "Allow for remote administration" ... WF_XPSP2.doc "Deploying Windows Firewall Settings for Microsoft ... you will find it as a ordinary Group Policy ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Force Log Off When Logon Hours Expire
    ... >You can't use this setting for console logoff. ... >This forced logoff policy is a policy for SMB server, ... >torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windows.group_policy)
  • Re: cannot even check for available updates
    ... Best Regards ... > Benny Wang wrote: ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windowsupdate)