Archive: Editing Local Security Policy


Editing Local Security Policy
Hi guys

We went into some scary stuff (for me) in my last post; time to go even further! This sounds like a very specific question, but actually quite alot of Java programmers might want to know the answer because it's key to the process of installing a Java application as a service.

What I want to be able to do is in the installer edit the Local Security Policy so that a designated user (selected during the install) can log on as a service.

This means I need to be able to:
o Check for Admin rights.
`- If necessary log the person in temporarily as admin.
o List all users able to log into the system.
o Have the person running the install choose a user to logon as a service.
o Update the Security Settings and the current Windows environment (hopefully without precipitating a reboot!) so that the changes are applied and active.

OK, tall order I know; I'll be working on this today and in the future so no rush, but...

...any ideas? :)

-rob-


Seems like C:\Windows\System32\gpedit.msc is a good place to start looking - at least for Windows XP. Wonder if 2000 has it...


Oh er hm that above useful tool isn't even provided with XP Home...

Also (to complicate things) I need to only view users within the "docu" group as possibilities for logging in as a service, and I want to be able to add users to that group - possible?


Bump!