How to modify a key Under HKCU if not admin

  • Thread starter Thread starter Chris Bruyere
  • Start date Start date
C

Chris Bruyere

Hi All. I'm working on an application that requires we turn off the lock
station button when the user hits the SAS. However, we are doing it
programittically, from within our application, which runs under the user log
in. The user does not have admin rights.

How can I modify the key:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\....

when my program runs as a user w/no admin priviledges?

Any ideas?

Thanks
Chris
 
Hy,

Login as Admin, start command regedt32 and here you have the option to set
permissions on Hives. Put your Service Accounts in Local Groups, set the
permissions for the local Groups.

Cheers Marcel
 
In said:
Hy,

Login as Admin, start command regedt32 and here you have the
option to set permissions on Hives. Put your Service Accounts in
Local Groups, set the permissions for the local Groups.

So you would recommend loosening the security on the System Policies
key(s)?
Pfft. Not a good idea IMHO.

If OP would explain the situation/task, then a better answer might be
formulated.
 
We have a similar need, but the settings are changed
through our program, not direct editing by the user.

We tried logging on a different user using stored
credentials in code, but found out that we could
not do that in Win2000 ... although under WinXP
it works just fine.

Is there any way to do thus under Win2000?
 
In said:
We have a similar need, but the settings are changed
through our program, not direct editing by the user.

We tried logging on a different user using stored
credentials in code, but found out that we could
not do that in Win2000 ... although under WinXP
it works just fine.

Is there any way to do thus under Win2000?

I'm sorry, I do not know.

I can only suggest a programmers/devlopers group relating to the Win32
APIs (guessing).
 
Back
Top