将判断2K类型变成简单任务
发表于:2007-05-25来源:作者:点击数:
标签:
最近有不少朋友问我,一台2000是专业版还是server版本怎么判断,其实有工具的话,很简单,这里就不说了,下面说说有shell后的简单方法。 进入对方cmd后 cd\ cdwinnt cdsystem32 type$winnt$.inf 然后就可以判断了。 例子一: NTCMDtype$winnt$.inf [userdata
最近有不少朋友问我,一台2000是专业版还是server版本怎么判断,其实有工具的话,很简单,这里就不说了,下面说说有shell后的简单方法。
进入对方cmd后
cd \
cd winnt
cd system32
type $winnt$.inf
然后就可以判断了。
例子一:
NTCMD>type $winnt$.inf
[userdata]
productid = "H6TWQ-TQQM8-HXJYG-D69F7-R84VM"
[regionalsettings]
Language = "00000804"
LanguageGroup = "10"
[data]
unattendedinstall = "no"
floppylessbootpath = "\Device\HardDisk0\partition1"
producttype = "lanmannt"
standardserve
rupgrade = "no"
winntupgrade = "no"
win9xupgrade = "no"
win31upgrade = "no"
sourcepath = "\device\harddisk0\partition1\$win_nt$.~ls"
msdosinitiated = "1"
floppyless = "1"
AutoPartition = "0"
UseSignatures = "yes"
InstallDir = "\WINNT"
EulaComplete = "1"
winntupgrade = "no"
win9xupgrade = "no"
Win32Ver = "8930005"
uniqueid = "C:\WINNT\JMD"
OriSrc = "D:\SERVER\i386"
OriTyp = "3"
dospath=C:\$WIN_NT$.~LS
看到OriSrc = "D:\SERVER\i386"这行,我们可以知道这台机器是server
例子二:
NTCMD>type $winnt$.inf
[data]
unattendedinstall = "no"
floppylessbootpath = "\Device\HardDisk0\partition1"
producttype = "winnt"
standardserverupgrade = "no"
winntupgrade = "no"
win9xupgrade = "no"
win31upgrade = "no"
sourcepath = "\device\harddisk0\partition1\$win_nt$.~ls"
msdosinitiated = "1"
floppyless = "1"
OriSrc = "A:\WIN2000\PRO\I386"
OriTyp = "5"
dospath=C:\$WIN_NT$.~LS
同上例还是看OriSrc = "A:\WIN2000\PRO\I386"这行,我们就可以知道是pro了
简单吧?
原文转自:http://www.ltesting.net
|