Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Sun, 7 Sep 2008 18:39:14 -0700 (PDT),    group: microsoft.public.vstudio.development        back       


Query Log On As A Service Policy...VB.NET   
Hello all,

I have an install that prompts for a user/password and uses this entry
to install/control a service.

If, on the target machine, the user entered is not currently included
in the Log on as a service local policy, I get a fatal error.  What I
would like to do is take the user entered and query the Log on as a
service policy to see if the user is present.  If not, I would simply
show a message indicating such and return to the user entry dialog.

I would like to create a VB.NET widget to query the policy and
possibly dump the contents to a file?  Since this .exe will run from a
Windows Installer file (.msi) if there is any way to connect to the
currently running .msi from the widget and use WI properties that
would be cool too.

If even possible, I really don't want to add the user as I would like
to include this step in some type of documentation referenced in the
informational message box encountered if the user is not in the
policy.  If there is a way to add the user via code, you could mention
that too, but I'm not necessarily looking for that piece.

Any help appreciated.

THANKS in advance.
date: Sun, 7 Sep 2008 18:39:14 -0700 (PDT)   author:   Superfreak3

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us