Reply to this topic Topic Options
4 Pages V   [1] 2 3 ... Next : Last » 
[HOW-TO]System Restore under Server 2003
gosh
Post #1 Jul 5 2003, 21:48


Neowinian
Group Icon

Group: Registered
Posts: 225
Joined: 21-September 02
Member No.: 17,305
How to install System restore on server 2003

This thread describes how to install system restore on server 2003. It is not a thread for talking about WHY you might want to do this, that belongs to another thread smile.gif

Below i will show how to do this after server 2003 is installed. I haven't tried slipstreaming this, but i imagine it could be done easily. If there's enough interest i might show how to slipstream system restore into server 2003.

Before we begin, you'll need an XP CD. Doesn't matter if it's home or pro. It shouldn't matter if it has a service pack on it, since all the files will be the same source. In testing i used a slipstreamed cd that already had sp1 on it.

In XP, system restore is installed in syssetup.inf under the inf.always section. If you have XP installed, you can open up %windir%\inf\syssetup.inf and search for [Infs.Always], you'll see the section xp looks at for installing system components. You'll notice it has sr.inf, this is the inf for system restore. For server 2003, if you look at syssetup.inf you won't find sr.inf. This doesn't mean system restore won't work in server 2003, it just means they didn't install it.

So first what we're going to need to do is right click on sr.inf and select 'install', to install it on server 2003. If you have xp installed on another computer/partition you can just right click on it. If you don't, then extract \i386\sr.in_ from the XP cd to your desktop, then right click on it and select 'install'. It'll prompt you were the files are, point it to the XP CD. Once done, it'll prompt to restart, say yes.

That was easy, the next part is the tricky part. After restarting you'll get an error saying the service couldn't start. Specifically the error is error 1068. I searched google and found this link - http://www.aerdyne.com/Kbase/article_000005.htm. The error basically means it cannot run under the service it's on. In system restore's case, it runs under the network service. I know this because in services.msc, for path to executable, it says this: C:\WINDOWS\system32\svchost.exe -k netsvcs. This got me thinking so i opened up sr.inf, and found this line:

[SRSvc_delreg]
HKLM,"Software\Microsoft\Windows NT\CurrentVersion\SvcHost","SRGroup"

I opened up regedit, and this registry key didn't exist. So it seems the sr.inf doesn't register system restore to run under the network services group. Using the above registry key as an example, i opened regedit and went to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost

On the right hand side i saw netsvcs. I double clicked on it, but saw SRService no where (SRService is the name for system restore). On a hunch, at the bottom i added SRService, rebooted, and this time got no error on startup. I opened up rstrui.exe, and system restore opened fine. I also had a System restore tab in system properties now too. I was able to make a restore point fine, then restore the computer to it without any problems. So in the above key, you want to double click on netsvcs, and at the bottom of the list, you want to type in SRService (probably case sensitive).

If you're not good with the registry you can save the following as a whatever.reg file and import it, but because it's binary i can't say if it'll work. I recommend manually adding SRService to the netsvcs key.

---copy below to whatever.reg then double click on it -----

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost]
"netsvcs"=hex(7):41,00,70,00,70,00,4d,00,67,00,6d,00,74,00,00,00,41,00,75,00,\
64,00,69,00,6f,00,53,00,72,00,76,00,00,00,42,00,72,00,6f,00,77,00,73,00,65,\
00,72,00,00,00,43,00,72,00,79,00,70,00,74,00,53,00,76,00,63,00,00,00,44,00,\
4d,00,53,00,65,00,72,00,76,00,65,00,72,00,00,00,45,00,76,00,65,00,6e,00,74,\
00,53,00,79,00,73,00,74,00,65,00,6d,00,00,00,48,00,69,00,64,00,53,00,65,00,\
72,00,76,00,00,00,49,00,61,00,73,00,00,00,49,00,70,00,72,00,69,00,70,00,00,\
00,49,00,72,00,6d,00,6f,00,6e,00,00,00,4c,00,61,00,6e,00,6d,00,61,00,6e,00,\
53,00,65,00,72,00,76,00,65,00,72,00,00,00,4c,00,61,00,6e,00,6d,00,61,00,6e,\
00,57,00,6f,00,72,00,6b,00,73,00,74,00,61,00,74,00,69,00,6f,00,6e,00,00,00,\
4d,00,65,00,73,00,73,00,65,00,6e,00,67,00,65,00,72,00,00,00,4e,00,65,00,74,\
00,6d,00,61,00,6e,00,00,00,4e,00,6c,00,61,00,00,00,4e,00,74,00,6d,00,73,00,\
73,00,76,00,63,00,00,00,4e,00,57,00,43,00,57,00,6f,00,72,00,6b,00,73,00,74,\
00,61,00,74,00,69,00,6f,00,6e,00,00,00,4e,00,77,00,73,00,61,00,70,00,61,00,\
67,00,65,00,6e,00,74,00,00,00,52,00,61,00,73,00,61,00,75,00,74,00,6f,00,00,\
00,52,00,61,00,73,00,6d,00,61,00,6e,00,00,00,52,00,65,00,6d,00,6f,00,74,00,\
65,00,61,00,63,00,63,00,65,00,73,00,73,00,00,00,53,00,61,00,63,00,73,00,76,\
00,72,00,00,00,53,00,63,00,68,00,65,00,64,00,75,00,6c,00,65,00,00,00,53,00,\
65,00,63,00,6c,00,6f,00,67,00,6f,00,6e,00,00,00,53,00,45,00,4e,00,53,00,00,\
00,53,00,68,00,61,00,72,00,65,00,64,00,61,00,63,00,63,00,65,00,73,00,73,00,\
00,00,54,00,68,00,65,00,6d,00,65,00,73,00,00,00,54,00,72,00,6b,00,57,00,6b,\
00,73,00,00,00,54,00,72,00,6b,00,53,00,76,00,72,00,00,00,57,00,33,00,32,00,\
54,00,69,00,6d,00,65,00,00,00,57,00,5a,00,43,00,53,00,56,00,43,00,00,00,57,\
00,6d,00,69,00,00,00,57,00,6d,00,64,00,6d,00,50,00,6d,00,53,00,70,00,00,00,\
77,00,69,00,6e,00,6d,00,67,00,6d,00,74,00,00,00,77,00,75,00,61,00,75,00,73,\
00,65,00,72,00,76,00,00,00,42,00,49,00,54,00,53,00,00,00,53,00,68,00,65,00,\
6c,00,6c,00,48,00,57,00,44,00,65,00,74,00,65,00,63,00,74,00,69,00,6f,00,6e,\
00,00,00,68,00,65,00,6c,00,70,00,73,00,76,00,63,00,00,00,75,00,70,00,6c,00,\
6f,00,61,00,64,00,6d,00,67,00,72,00,00,00,57,00,6d,00,64,00,6d,00,50,00,6d,\
00,53,00,4e,00,00,00,53,00,52,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,\
00,00,00,00


--- copy above --------------------------------------------------------

That's it! Remember to restart both times.

Enjoy,

-gosh

Attached image(s)
Attached Image Attached Image
 
Profile Card PM + Reply to Post Go to the top of the page Email Poster

Log In or Register · Advertise on Neowin
RobertH
Post #2 Jul 5 2003, 22:04


Neowinian Senior
Group Icon

Group: Registered
Posts: 2,254
Joined: 13-September 01
From: UK
Member No.: 1,251
Mint biggrin.gif Cheers for that - Very Helpful.

You know we could make this thread sticky and people could post other stuff like this in here... yes.gif
Profile Card PM + Reply to Post Go to the top of the page
vetJohn
Post #3 Jul 5 2003, 22:35


Neowinian Super Cool
Group Icon
Group Icon

Group: vetVeteran
Posts: 17,653
Joined: 28-January 02
From: Moline, Illinois
Member No.: 9,158
sounds good, i'll try it when i reboot next. and guys, please don't post "this is stupid" or "why would you ever do this?" because he told me he did it and i wanted to know how. tongue.gif
Profile Card PM + Reply to Post Go to the top of the page Email Poster
RobertH
Post #4 Jul 5 2003, 23:13


Neowinian Senior
Group Icon

Group: Registered
Posts: 2,254
Joined: 13-September 01
From: UK
Member No.: 1,251
Ok i just did a bit of editing. You know the system restore icon, looks a bit naff dont it? Kinda looks like Microsoft didnt have time to finnish it.... anyway i personally think the icon from Windows Me looks a lot nicer (i requested this icon it in another thread but its ok i found it now).

Anyway i extracted the icon group from the file, then used resource hacker to integrate the new icons into the original file. I thought id share just incase you want to use it smile.gif just pop it in the \system32\restore\ folder.

Attached File(s)
Attached File  rstrui.2k3.zip ( 0bytes ) Number of downloads: 1268
Attached File  rstrui.2k3.zip ( 0bytes ) Number of downloads: 757
 
Profile Card PM + Reply to Post Go to the top of the page
raid517
Post #5 Jul 5 2003, 23:13


Neowinian
Group Icon

Group: Banned
Posts: 3,383
Joined: 7-June 02
From: UK
Member No.: 13,486
Please can someone make this a sticky? It is one of the most regularly asked questions on this forum.

Q
Profile Card PM + Reply to Post Go to the top of the page Email Poster
RobertH
Post #6 Jul 5 2003, 23:14


Neowinian Senior
Group Icon

Group: Registered
Posts: 2,254
Joined: 13-September 01
From: UK
Member No.: 1,251
Ok i just did a bit of editing. You know the system restore icon, looks a bit naff dont it? Kinda looks like Microsoft didnt have time to finnish it.... anyway i personally think the icon from Windows Me looks a lot nicer (i requested this icon it in another thread but its ok i found it now).

Anyway i extracted the icon group from the file, and i thought id share just incase you want to use it smile.gif.

Attached File(s)
Attached File  rstrui.2k3.zip ( 0bytes ) Number of downloads: 753
Attached File  rstrui.2k3.zip ( 0bytes ) Number of downloads: 477
 
Profile Card PM + Reply to Post Go to the top of the page
raindrop
Post #7 Jul 5 2003, 23:23


Citizen of the world
Group Icon

Group: Registered
Posts: 121
Joined: 25-January 02
Member No.: 9,054
Thanks man, it is working Great!!!!

You are the MAN!
Profile Card PM + Reply to Post Go to the top of the page
raid517
Post #8 Jul 5 2003, 23:33


Neowinian
Group Icon

Group: Banned
Posts: 3,383
Joined: 7-June 02
From: UK
Member No.: 13,486
As for slipstreaming. Yes Please. Can you show us how?

Q
Profile Card PM + Reply to Post Go to the top of the page Email Poster
gosh
Post #9 Jul 6 2003, 00:00


Neowinian
Group Icon

Group: Registered
Posts: 225
Joined: 21-September 02
Member No.: 17,305
To slipstream you would just need to add the registry key for netsvcs then copy the files for system restore into the i386 folder.

For instance in the hivesft.inf for xp youll see this:

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost",netsvcs,0x00010000,\
"6to4",\
"AppMgmt",\
"AudioSrv",\
"Browser",\
"CryptSvc",\
"DMServer",\
"DHCP",\
"ERSvc",\
"EventSystem",\
"HidServ",\
"Ias",\
"Iprip",\
"Irmon",\
"LanmanServer",\
"LanmanWorkstation",\
"Messenger", \
"Netman",\
"Nla",\
"Ntmssvc",\
"NWCWorkstation",\
"Nwsapagent",\
"Rasauto",\
"Rasman",\
"Remoteaccess",\
"Schedule",\
"Seclogon",\
"SENS",\
"Sharedaccess",\
"SRService",\
"Tapisrv",\
"TrkWks",\
"W32Time",\
"WZCSVC",\
"Wmi",\
"WmdmPmSp",\
"winmgmt"

In hivesft.inf for server 2003 youll see this:

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost",netsvcs,0x00010000,\
"AppMgmt",\
"AudioSrv",\
"Browser",\
"CryptSvc",\
"DMServer",\
"EventSystem",\
"HidServ",\
"Ias",\
"Iprip",\
"Irmon",\
"LanmanServer",\
"LanmanWorkstation",\
"Messenger", \
"Netman",\
"Nla",\
"Ntmssvc",\
"NWCWorkstation",\
"Nwsapagent",\
"Rasauto",\
"Rasman",\
"Remoteaccess",\
"Sacsvr",\
"Schedule",\
"Seclogon",\
"SENS",\
"Sharedaccess",\
"TrkWks",\
"TrkSvr",\
"W32Time",\
"WZCSVC",\
"Wmi",\
"WmdmPmSp",\
"winmgmt"

So just edit the server 2003 hivesft.inf file, and add SRService in that list. Then copy the files listed in sr.inf to the 2003 i386 folder. Finally, find some way to run the install. One way you could do this is with an unattend file, and have it run this command:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 sr.inf

Just change the path to sr.inf. That's the basic idea! That should work but untested.

-gosh
Profile Card PM + Reply to Post Go to the top of the page Email Poster
Guest_Beh_* Post #10 Jul 6 2003, 00:02





Un-Registered



excellent guide that just filled in the last gap that made windows server 2003 a workstation
+ Reply to Post Go to the top of the page
raid517
Post #11 Jul 6 2003, 00:15


Neowinian
Group Icon

Group: Banned
Posts: 3,383
Joined: 7-June 02
From: UK
Member No.: 13,486
Well not quite, someone has to still get the welcome screen back up and the little user photo in the start menu. Once we have that, we will all trully have something unique. wink.gif Even better still if someone could pool all the hacks here (at least this kind) on this forum into an installable .exe conversion pack.

Q
Profile Card PM + Reply to Post Go to the top of the page Email Poster
vetJohn
Post #12 Jul 6 2003, 00:27


Neowinian Super Cool
Group Icon
Group Icon

Group: vetVeteran
Posts: 17,653
Joined: 28-January 02
From: Moline, Illinois
Member No.: 9,158
i think both of those are part of the welcome screen. and from gosh's post, i would assume you could install it with some inf file on the xp cd.
Profile Card PM + Reply to Post Go to the top of the page Email Poster
Arpit
Post #13 Jul 6 2003, 00:58


The humble Neowinian
Group Icon

Group: Registered
Posts: 1,529
Joined: 16-August 01
From: Toronto, Ontario
Member No.: 659
can anyone tell me why did MS take out the system restore to begin with..?
Profile Card PM + Reply to Post Go to the top of the page
Twink
Post #14 Jul 6 2003, 01:21


Neowinian
Group Icon

Group: Registered
Posts: 50
Joined: 15-June 02
Member No.: 13,828
because its a server os, and you would likely use something more powerful then system restore.
Profile Card PM + Reply to Post Go to the top of the page Email Poster
vetRadish™
Post #15 Jul 6 2003, 01:25


A nocturnal geek
Group Icon
Group Icon

Group: vetVeteran
Posts: 22,781
Joined: 28-November 01
From: London, UK
Member No.: 4,583
Syntax Error - Microsoft didn't put System Restore on a Server OS because if the end user were to use it ( e.g. due to installing a faulty program .... ), it would cause data replication on the system - which is not good for a server in a production enviroment ....

Radish.
Profile Card PM + Reply to Post Go to the top of the page
« Older · Windows NT4/2000/2003/2008 Server · Newer »
4 Pages V   [1] 2 3 ... Next : Last »   Reply to this topic