|
我们知道:WinPE只是有限功能的Mini操作系统,微软为了防止用户将它用作盗版操作系统,在连续使用24小时后WinPE将自动退出并重启。
这个限制有可能给用户带来不便,例如用PE系统进行无人值守的长时间维护,而又不能中断的情况。
在某些版本的WinPE中,采取了这样一种方法来破除这种限制:
-------------------------------------------------------------------------------------------------------------------
在系统初始化过程中使用PECMD.INI
//杀掉无用进程并删掉 X: 盘可删除文件以节省空间
TEAM WAIT 5000|KILL SMSS.EXE|KILL WINLOGON.EXE|FILE %SS%\SMSS.EXE|FILE %SS%\WINLOGON.EXE
-------------------------------------------------------------------------------------------------------------------
杀掉 SMSS.exe 和 Winlogon.exe 进程
PE的24小时限制一定是在Winlogon.exe这个文件中,那我们是不是可以修改这个系统文件来破除24小时的限制呢?
我在国外的一个网站上看到了这个文件:
http://www.bootcd.us/Downloads/winlogon.cab
里面有两个文件:winlogon.exe 版本:5.1.2600.1106 和 winlogon.inf 内容如下:
-------------------------------------------------------------------------------------------------------------------
;
; winlogon.inf for PE builder v3
; By tadw, _reqUiem_ & Jon Fleming
; You guys rule!
;
; winlogon.exe was patched with a hex editor as follows:
;
; search: A1 C8 5B 07 01 C9 C3
; replace: 33 C0 90 90 90 C9 C3
;
; search: EB 2C 8B 47 08
; replace: 90 90 8B 47 08
[Version]
Signature= "$Windows NT$"
[PEBuilder]
name="Winlogon resource patch"
Enable=1
[SourceDisksFiles]
winlogon.exe=2,,1
[SetupReg.AddReg]
; Memory Management
0x4, "ControlSet001\Control\Session Manager\Memory Management", "DisablePagingExecutive", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "LargeSystemCache", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "IoPageLockLimit", 0x00010000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "ClearPageFileAtShutdown", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "NonPagedPoolQuota", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "NonPagedPoolSize", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "PagedPoolQuota", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "SecondLevelDataCache", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "SystemPages", 0x00000000
0x7, "ControlSet001\Control\Session Manager\Memory Management", "PagingFiles", 00,00,00,00
0x4, "ControlSet001\Control\Session Manager\Memory Management", "PhysicalAddressExtension", 0x00000000
0x4, "ControlSet001\Control\Session Manager\Memory Management", "SessionViewSize", 0x00000030
0x4, "ControlSet001\Control\Session Manager\Memory Management", "SessionPoolSize", 0x00000004
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "VideoInitTime", 0x00000439
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "EnablePrefetcher", 0x00000003
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "AppLaunchMaxNumPages", 0x00000fa0
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "AppLaunchMaxNumSections", 0x000000aa
0x7, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "AppLaunchTimerPeriod", 80,69,67,ff,ff,ff,ff,ff
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "BootMaxNumPages", 0x0001f400
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "BootMaxNumSections", 0x00000ff0
0x7, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "BootTimerPeriod", 00,f2,d8,f8,ff,ff,ff,ff
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "MaxNumActiveTraces", 0x00000008
0x4, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "MaxNumSavedTraces", 0x00000008
0x1, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "RootDirPath", "Prefetch"
0x7, "ControlSet001\Control\Session Manager\Memory Management\PrefetchParameters", "HostingAppList", "DLLHOST.EXE,MMC.EXE,RUNDLL32.EXE"
-------------------------------------------------------------------------------------------------------------------
我把 winlogon.exe 替换 我的PE里的文件后,启动到 SMSS.exe步骤时蓝屏,出现 Stop:c000021a unknow hard error 错误 不知为何?
大家共同探讨,应该怎样修改Winlogon.exe ? |
|