PC Review


Reply
Thread Tools Rate Thread

add registry key from script

 
 
Bisha
Guest
Posts: n/a
 
      16th Nov 2004
I need to add a registry key to all users. I created
a .reg file and add regedit /s regfile.reg.

Everything works but for regular users or even power users
I get an error to access registry.Looks like a permission
problem . "How can I add the registry key as a regular or
power user ??"

The Key I need to add is :
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Security]
"CheckAdminSettings"=dword:00000001

Thanks

 
Reply With Quote
 
 
 
 
Adam
Guest
Posts: n/a
 
      17th Nov 2004
Hi

Could you run the script under Administrator by using the RunAs command?

Just a thought


"Bisha" <(E-Mail Removed)> wrote in message
news:6a0501c4cc16$c79a9500$(E-Mail Removed)...
>I need to add a registry key to all users. I created
> a .reg file and add regedit /s regfile.reg.
>
> Everything works but for regular users or even power users
> I get an error to access registry.Looks like a permission
> problem . "How can I add the registry key as a regular or
> power user ??"
>
> The Key I need to add is :
> [HKEY_CURRENT_USER\Software\Policies\Microsoft\Security]
> "CheckAdminSettings"=dword:00000001
>
> Thanks
>



 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      17th Nov 2004
In microsoft.public.win2000.registry Bisha wrote:

> I need to add a registry key to all users. I created
> a .reg file and add regedit /s regfile.reg.
>
> Everything works but for regular users or even power users
> I get an error to access registry.Looks like a permission
> problem . "How can I add the registry key as a regular or
> power user ??"
>
> The Key I need to add is :
> [HKEY_CURRENT_USER\Software\Policies\Microsoft\Security]
> "CheckAdminSettings"=dword:00000001


I don't have that exact key, but using regedt32.exe you can observe
that the POLICIES key is restriced (Administrators:F, SYSTEM:F
UserAccount:R) This is intentional.

Adam offers one way to have the change made from an acceptable
security context. RUNAS alone however, generally exposes the
passphrase to prying eyes.

Generally I suggest using a Policy to change, well, Policies.

http://support.microsoft.com/default...b;en-us;885682
"How to deploy customized Outlook 2003 security settings to client
computers by using the "Outlook virus security settings" Group Policy
setting"

You might list available methods there _other_ than user-context
registry merge.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute a registry key into a remote user's registry via a login script Mr. Debrosse Microsoft Windows 2000 Registry 1 30th Jan 2004 01:46 PM
Execute a registry key into a remote user's registry via a login script Mr. Debrosse Microsoft Windows 2000 Registry Archive 2 30th Jan 2004 01:46 PM
Execute a registry key into a remote user's registry via a login script Mr. Debrosse Microsoft Windows 2000 Registry Archive 0 28th Jan 2004 04:54 PM
"The specified file is not a registry script. You can import only registry files Mark Microsoft Windows 2000 Registry Archive 8 25th Oct 2003 07:31 PM
"The specified file is not a registry script. You can import only registry files Mark Microsoft Windows 2000 Registry 4 25th Oct 2003 07:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.