Command line editor or script in order to add a new key to the Registry.pol file

  • Thread starter Thread starter Auto
  • Start date Start date
A

Auto

Guest
Hello,

I need to add a "MyNewFile.exe" to the list of 'Run only allowed Windows
Applications' (RestrictRun).
This have to be done by my installation package.
Is there a command line editor or script in order to add a new key to the
Registry.pol file?

Regards.
 
Re: Command line editor or script in order to add a new key to the Registry.pol file

WMI can modify the registry:
http://msdn2.microsoft.com/en-us/library/aa394600.aspx

Not sure if it works for group policy. You might want to post your question
to the GP newsgroup: microsoft.public.windows.group_policy

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Auto" <auto@auto.it> wrote in message
news:uhf%23r1RyHHA.1184@TK2MSFTNGP04.phx.gbl...
> Hello,
>
> I need to add a "MyNewFile.exe" to the list of 'Run only allowed Windows
> Applications' (RestrictRun).
> This have to be done by my installation package.
> Is there a command line editor or script in order to add a new key to the
> Registry.pol file?
>
> Regards.
>
>
 
Re: Command line editor or script in order to add a new key to the Registry.pol file

I do not think it is possible to modify the settings in a GPO
programmatically - I hope I understood correctly and that is what you
want to do.

Helge

On 18 Jul., 11:24, "Auto" <a...@auto.it> wrote:
> Hello,
>
> I need to add a "MyNewFile.exe" to the list of 'Run only allowed Windows
> Applications' (RestrictRun).
> This have to be done by my installation package.
> Is there a command line editor or script in order to add a new key to the
> Registry.pol file?
>
> Regards.
 
Back
Top