PC Review


Reply
Thread Tools Rate Thread

Adding .reg to startup/shutdown GPO

 
 
Richard
Guest
Posts: n/a
 
      27th Jul 2007
I have a .reg file that I would like to setup as system startup/shutdown
script GPO in AD. Is there a switch or parameter to suppress the "Are you
sure you want to add information in the registry" prompt?

This is what I have in the .reg file and the file is called "CSA.REG"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CSAgent]
"Type"=dword:00000010
"Start"=dword:00000004


I just want the script to overwrite the existing key without any prompts.
Any help is appreciated. Thanks!

Richard





 
Reply With Quote
 
 
 
 
Jon Wallace
Guest
Posts: n/a
 
      27th Jul 2007
Hi Richard,

You can use the /S switch to suppress in message so for example REGEDT32.EXE
/S CSA.REG

The other (and cleaner) option you have if you want to do this in a group
policy script is to set these using VBScript - here is a small code sample
you could use...

-----

Option Explicit

Dim oWshShell
Set oWshShell = CreateObject("Wscript.Shell")

oWshShell.RegWrite "HKCU\CurrentControlSet\Services\CSAgent\Type", 10,
"REG_DWORD"
oWshShell.RegWrite "HKCU\CurrentControlSet\Services\CSAgent\Start", 4,
"REG_DWORD"

-----

Hope this helps you.

Regards,
Jon

--------

"Richard" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have a .reg file that I would like to setup as system startup/shutdown
>script GPO in AD. Is there a switch or parameter to suppress the "Are you
>sure you want to add information in the registry" prompt?
>
> This is what I have in the .reg file and the file is called "CSA.REG"
>
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CSAgent]
> "Type"=dword:00000010
> "Start"=dword:00000004
>
>
> I just want the script to overwrite the existing key without any prompts.
> Any help is appreciated. Thanks!
>
> Richard
>
>
>
>
>



 
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
Startup and Shutdown =?Utf-8?B?c2hhZ2d5?= Windows XP General 2 20th Sep 2006 10:03 AM
X-P startup and shutdown =?Utf-8?B?c2lkZXNlYWw=?= Windows XP Setup 1 21st Nov 2004 09:59 PM
Win XP Shutdown & Startup SidBord Windows XP General 1 22nd Apr 2004 10:03 PM
Startup and Shutdown Shane Windows XP General 0 25th Mar 2004 01:31 PM
Startup and Shutdown Shane Windows XP General 0 25th Mar 2004 01:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:16 AM.