#174532 - 2007-03-06 07:59 PM
Remote Registry - Status: Disabled, Manual, Automatic, Windows XP
|
cmack
Lurker
Registered: 2007-03-06
Posts: 1
Loc: Canada
|
Hello Kix Forum...
I've written a script that fires in my KixTart login script.
This script will change the Windows XP Remote Registry setting from Disabled to Automatic.
When I run both commands it works it successfully and changes the value and starts the service. Here's my problem.
When I try to run the service, after I've changed the status value, I get the following error. { The Service cannont be started, either because it is disabled or because it has no enabled devices associated with it. }
I know both scripts work because I'm seeing positive results with each one. I can prove that my script changes the key and starts the services, because I've tested both individual scripts on two different pcs.
Has anyone experienced this same problem or similar problem? How did you change the Remote Registry Service from the status of Disabled to Automatic. Then start that service?
Here's the code I'm using.
WriteValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry","Start", "2", "REG_DWORD")
In a batch file I'm using this.
NET START "Remote Registry"
Get back to asap. Thanks Colin Mackenzie
Edited by cmack (2007-03-06 08:00 PM)
|
|
Top
|
|
|
|
#174563 - 2007-03-07 05:06 PM
Re: Remote Registry - Status: Disabled, Manual, Automatic, Windows XP
[Re: Glenn Barnas]
|
Pr0ph3t
Just in Town
Registered: 2007-01-05
Posts: 4
|
Colin,
I ran into the exact same issue a couple of weeks ago. I never could get the change reg value run NET START approach to work. Here's what I ended-up using:
; Change the Remote Registry Service startup-type to manual
SHELL 'sc config remoteregistry start= demand'
; Start the Remote Registry Service
SHELL 'sc start remoteregistry'
Keep in mind, SC.exe only installs as a default on WinXP and newer. If you want this to work with Win2k, you will need to get SC.exe off of the resource kit and either copy it to the target machines or run it from @SCRIPTDIR.
Good Luck!
_________________________
"There is no spoon..."
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 781 anonymous users online.
|
|
|