In
tip 1101, we used an alternate install of Windows NT to compact the registry.
If you have MV.EXE from the Resource Kit, you don't need an alternate install.
NOTE: See Freeware utility configures PendingFileRenameOperations.
NOTE: See How to Replace In-Use Files at Windows Restart.
The syntax of MV is:
MV \[/x\] \[/d\] file1 \[file2....\] Target
where:
/x Don't save deleted/replaced files.
/d Delay the move until the next reboot.
Here is RegCpt.bat, which contains:
::RDISK /S- creates the registry files in the %SystemRoot%\Repair folder and doesn't prompt for a Diskette rdisk.exe /s- EXPAND %systemroot%\REPAIR\DEFAULT._ %temp%\DEFAULT EXPAND %systemroot%\REPAIR\SAM._ %temp%\SAM EXPAND %systemroot%\REPAIR\SECURITY._ %temp%\SECURITY EXPAND %systemroot%\REPAIR\SOFTWARE._ %temp%\SOFTWARE EXPAND %systemroot%\REPAIR\SYSTEM._ %temp%\SYSTEM ::MV the expanded registry files during reboot. MV /X /D %temp%\DEFAULT %systemroot%\SYSTEM32\CONFIG\DEFAULT MV /X /D %temp%\SAM %systemroot%\SYSTEM32\CONFIG\SAM MV /X /D %temp%\SECURITY %systemroot%\SYSTEM32\CONFIG\SECURITY MV /X /D %temp%\SOFTWARE %systemroot%\SYSTEM32\CONFIG\SOFTWARE MV /X /D %temp%\SYSTEM %systemroot%\SYSTEM32\CONFIG\SYSTEM ::SHUTDOWN will restart the computer. SHUTDOWN /L /R /T:10 "Shutting down in 10 seconds" /Y /C
0 comments
Hide comments