Toon posts:

[WIN2K] Registry Repair Batch

Pagina: 1
Acties:

Verwijderd

Topicstarter
Een kennis van mij heeft zijn register vern**kt.
Wat erger is, hij gebruikte altijd het administrator account, heeft cmdcons niet geinstalleerd en heeft geen Emergency Repair Disk gemaakt noch een backup van zijn register.

Voor de volgende keer dacht ik een file te maken die hulp bied in noodgevallen.
Graag jullie mening en wat te doen met UsrClass.dat?

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
rem 
rem ======================
rem RESTORING THE REGISTRY
rem ======================
rem 
rem * BACKUP *
rem Install the "Recovery Console" (cmdcons) by running 
rem "X:\ENGLISH\WIN2000\PRO\I386\WINNT32.EXE /cmdons"
rem 
rem Copy this file (REPAIR.TXT) in "C:\cmdcons\repair".
rem 
rem Run NTBACKUP.EXE and choose "Emergency Repair Disk".
rem When you'll be asked to insert a floppy, choose "Backup the
rem registry".
rem 
rem * REPAIR *
rem Start the "Recovery Console" (cmdcons).
rem Logon as administrator, type at the prompt: "cd cmdcons\repair"
rem Next type at the prompt: "BATCH REPAIR.TXT"
rem 
rem Start Windows, logon as administrator and copy 
rem "C:\WINNT\Repair\Regback\NTUSER.DAT" to 
rem "C:\Documents and Settings\%USER%\NTUSER.DAT (replace %USER% 
rem with the username)
rem 
rem * NOTE *
rem Use the administrator account ONLY for setup and EMERGENCY!!
rem For daily use create an user account, with desired (administrator)
rem rights.
rem 
rem I'm not yet sure what to do with the UsrClass.dat
rem 
COPY C:\WINNT\Repair\Regback\default    C:\WINNT\system32\config\default
COPY C:\WINNT\Repair\Regback\SAM    C:\WINNT\system32\config\SAM
COPY C:\WINNT\Repair\Regback\SECURITY   C:\WINNT\system32\config\SECURITY
COPY C:\WINNT\Repair\Regback\software   C:\WINNT\system32\config\software 
COPY C:\WINNT\Repair\Regback\system     C:\WINNT\system32\config\system