Page 1 of 1 1
Topic Options
#174532 - 2007-03-06 07:59 PM Remote Registry - Status: Disabled, Manual, Automatic, Windows XP
cmack Offline
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
#174533 - 2007-03-06 08:41 PM Re: Remote Registry - Status: Disabled, Manual, Automatic, Windows XP [Re: cmack]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Since you must have XNET.EXE, replace your writevalue line with
 Code:
Shell xnet modify RemoteRegistry /s:Auto
just as a test. If it works, I'd wager that the Start Type is cached and changing the registry isn't enough. SC.EXE and XNET.EXE usually cause a refresh. You can use SC.EXE just as easily - I am just more familiar with the XNET syntax.

Just some thoughts to diagnose the problem...

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#174563 - 2007-03-07 05:06 PM Re: Remote Registry - Status: Disabled, Manual, Automatic, Windows XP [Re: Glenn Barnas]
Pr0ph3t Offline
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:
 Code:
	; 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
#174569 - 2007-03-07 06:46 PM Re: Remote Registry - Status: Disabled, Manual, Automatic, Windows XP [Re: Pr0ph3t]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Or like Glenn Barnas said, the xnet.exe. It was available with KiXtart untill version 4.23. That version can still be downloaded.
http://www.kixtart.org/binary/distrib/kix2001_423.zip
I presume sc can be found "zipped" here:
ftp://ftp.microsoft.com/ResKit/win2000/sc.zip

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.174 seconds in which 0.109 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org