社区应用 最新帖子 精华区 社区服务 会员列表 统计排行
  • 1171阅读
  • 2回复

Windows 7集成序列号的方式

楼层直达
级别: 管理员
发帖
28277
飞翔币
1597
威望
888
飞扬币
132492
信誉值
0

有两种办法:
1.使用如下命令:

引用dism /image:%mount% /Set-ProductKey:Key

2.使用sources目录下的autounattend.xml文件,类似的内容可由WAIK的Windows System Image Manager工具生成:

引用<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UserData>
                <ProductKey>
                    <WillShowUI>OnError</WillShowUI>
                    <Key>Key</Key>
                </ProductKey>
            </UserData>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


关于MOUNT目录

引用set mount=D:\temp\mount
set source=D:\temp\win7
set wim=%source%\sources\install.wim
dism /mount-wim /wimfile:%wim% /index:4 /mountdir:%mount%


如果是想在重新封装或者用imagex把映像安装后用bcdboot配置的方式安装,用应答文件来控制的话,key集成在<settings pass="windowsPE">阶段就不起作用了,可以把key放在<settings pass="specialize">阶段

引用<settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
            <ComputerName>windows</ComputerName>
            <CopyProfile>true</CopyProfile>
            <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>
            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
            <RegisteredOrganization>windows7</RegisteredOrganization>
            <RegisteredOwner>windows7</RegisteredOwner>
            <ShowWindowsLive>true</ShowWindowsLive>
            <StartPanelOff>false</StartPanelOff>
            <TimeZone>China Standard Time</TimeZone>
            <ProductKey>22TKD-F8XX6-YG69F-9M66D-PMJBM</ProductKey>
        </component>
    </settings>


最后编辑: 网络旺旺 编辑于2009/08/11 20:30
 
级别: 光盘新手
发帖
240
飞翔币
262
威望
8
飞扬币
751
信誉值
0
只看该作者 1 发表于: 2009-08-11
强贴必顶
级别: 光盘见习
发帖
60
飞翔币
336
威望
16
飞扬币
1433
信誉值
0
只看该作者 2 发表于: 2009-08-11
这个牛B啊
学习咯