Problem adding a local GPO to a remote PC with REG.EXE
- From: "JJ \(UK\)" <oh.please@xxxxxxxx>
- Date: Mon, 16 Oct 2006 22:39:05 GMT
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)
.
- Prev by Date: Blue Screen Errors - Please Help!
- Next by Date: XP Laptop Display
- Previous by thread: Blue Screen Errors - Please Help!
- Next by thread: XP Laptop Display
- Index(es):
Relevant Pages
|