Problem adding a local GPO to a remote PC with REG.EXE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



For reasons too tedious to go in to I need to add a local GPO on a remote PC
to run a Startup script using a VB Script wihich utilises the reg.exe
command (instead of using a domain GPO).

My script works in terms of the syntax working to add in the Keys, Values
and Data to the registry of the machine but it seems that it's still missing
something.

At first the script was adding in just the following regisrty entries:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group
Policy\State\Machine\Scripts\Startup\0]
"GPO-ID"="LocalGPO"
"SOM-ID"="Local"
"FileSysPath"="C:\\WINDOWS\\System32\\GroupPolicy\\Machine"
"DisplayName"="Local Group Policy"
"GPOName"="Local Group Policy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group
Policy\State\Machine\Scripts\Startup\0\0]
"Script"="RenameFolder.vbs"
"Parameters"="VimesS"
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

Then I found I need to duplicate the same entries as follows:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Scripts\S
tartup\0]
"GPO-ID"="LocalGPO"
"SOM-ID"="Local"
"FileSysPath"="C:\\WINDOWS\\System32\\GroupPolicy\\Machine"
"DisplayName"="Local Group Policy"
"GPOName"="Local Group Policy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Scripts\S
tartup\0\0]
"Script"="RenameFolder.vbs"
"Parameters"="VimesS"
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

But still, when I check the Group Policy Objects using MMC I still don't see
the local GPO. Does anyone have any idea what is missing?

Thanks in advance.

JJ (UK)


.



Relevant Pages

  • Re: Help me Please URGENT!!!!!
    ... > this part I need to apply this Local GPO Configuration only on a specific ... Can you perform the script actions MANUALLY ... > I need to configure in Local GPO the "User Configuration". ... > Then I need to create a script which run this configuration to logon of this> specific user. ...
    (microsoft.public.win2000.security)
  • Re: Help me Please URGENT!!!!!
    ... I need to configure in Local GPO the "User Configuration". ... Then I need to create a script which run this configuration to logon of this ...
    (microsoft.public.win2000.security)
  • Adding a local GPO with REG.EXE
    ... For reasons too tedious to go in to I need to add a local GPO on a remote PC ... to run a Startup script using a VB Script wihich utilises the reg.exe ... At first the script was adding in just the following regisrty entries: ... Does anyone have any idea what is missing? ...
    (alt.os.windows-xp)
  • Re: Local Policy and logoff scripts
    ... what I would do is delete the script from the local GPO ... MS-MVP-Windows Server--Group Policy ... > I have a logoff script which I would like to run on all machines within an ...
    (microsoft.public.windows.group_policy)
  • Re: Missing field in Design Report
    ... solution it tells me that in many scripts a field is missing. ... approx. ... Fields used by this script: ... you can narrow down the steps in which the missing field reference is ...
    (comp.databases.filemaker)