Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Determine if user contained in Log On As A Service local policy...

Reply
 
Old 09-07-2008   #1 (permalink)
Superfreak3


 
 

Determine if user contained in Log On As A Service local policy...

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.

Is there any way a vbscript could handle the quering the policy?

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.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
No Local Security Policy Vista networking & sharing
user cannot change clock even with local policy set to allow Vista General
How to use C++ to add a new local user for a service Vista account administration
Re: local policy Vista General
Local Security Policy Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46