2017年5月16日

P5 如何用 Windows系統映像管理員(Windows System Image Manager) 製作Windows 10自動安裝回應檔案
PART V 關閉[SMB 1.0/CIFS 檔案共用支援]功能


PART I 準備工作
PART II 瞭解Windows 10安裝過程
PART III 製作自動安裝回應檔案
PART IV 如何使用
PART V 關閉[SMB 1.0/CIFS 檔案共用支援]功能
PART VI 使用DiskPart建立磁碟分割
PART VII 不要預留[保留的儲存空間]
PART VIII 指定電腦名稱與加入網域
PART IX 彈性搭配批次檔使用
PART Max 懶人包

最近勒索軟體病毒肆虐, 微軟其實一直都建議大家不要再使用SMB 1.0.
在回應檔案裏面加入PowerShell指令就可以在安裝Windows 10時關閉[SMB 1.0/CIFS 檔案共用支援]功能(預設是開啟的).
  • Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart

改好的autounattend.xml應該類似這樣:
  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
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" 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">
            <SetupUILanguage>
                <UILanguage>zh-TW</UILanguage>
            </SetupUILanguage>
            <InputLocale>zh-TW</InputLocale>
            <SystemLocale>zh-TW</SystemLocale>
            <UILanguage>zh-TW</UILanguage>
        </component>
        <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>
                    <Key>W269N-WFGWX-YVC9B-4J6C9-T83GX</Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>500</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>系統保留</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Format>NTFS</Format>
                            <Letter>C</Letter>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/DISPLAYNAME</Key>
                            <Value>Windows 10 Pro</Value>
                        </MetaData>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                </OSImage>
            </ImageInstall>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" 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">
            <InputLocale>zh-TW</InputLocale>
            <SystemLocale>zh-TW</SystemLocale>
            <UILanguage>zh-TW</UILanguage>
            <UserLocale>zh-TW</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-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">
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Description>Administrative User</Description>
                        <DisplayName>admin</DisplayName>
                        <Group>Administrators</Group>
                        <Name>admin</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <OOBE>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Path>powershell Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart</Path>
                    <Description>Turn off SMB 1.0/CIFS File Sharing Support...</Description>
                    <Order>1</Order>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
</unattend>

安裝過程會看到:


安裝完成後確認:




繼續閱讀:
PART VI 使用DiskPart建立磁碟分割

2017年4月15日

製作WinPE可開機光碟 (使用Windows ADK for Windows 10, version 1703)


需要的軟體:


接下來我用Windows 10(版本 1703)來示範:

步驟1:
執行adksetup.exe, 安裝Windows Assessment and Deployment Kit (Windows ADK).



步驟2:(選擇性)
準備要加進WinPE的驅動程式, 這裡以Samsung NVMe Driver為例子, 把驅動程式放在C:\driver裡面.

步驟3:
部署與映像工具環境上按滑鼠右鍵, 以系統管理員身分執行, 在命令列鍵入:
> copype amd64 C:\WinPE (你也可以指定到其他的資料夾)





步驟4:
掛載映像檔.
> dism /mount-wim /wimfile:C:\WinPE\media\sources\boot.wim /index:1 /mountdir:C:\WinPE\mount

步驟5:(選擇性)
加入驅動程式.
> dism /image:C:\WinPE\mount /add-driver /driver:C:\driver /recurs

步驟6:(選擇性)
確認一下加進去的驅動程式.
> dism /image:C:\WinPE\mount /get-drivers

步驟7:(選擇性)
接下來可以加入一些工具程式方便在WinPE中使用, 在C:\WinPE\mount底下新建一個資料夾,
例如: C:\WinPE\mount\tool, 然後把程式複製到裡面.

步驟8:
儲存並卸載映像檔. (記得要先關掉其他不用的視窗, 否則會出現錯誤!)
> dism /unmount-wim /mountdir:C:\WinPE\mount /commit

步驟9:
產生WinPE ISO檔案.
> MakeWinPEMedia /iso C:\WinPE C:\WinPE\WinPE.iso

步驟10:(選擇性)
(如果要產生可開機的USB flash key)
先接上USB flash key, 並請確認上面沒有重要資料.
> MakeWinPEMedia /ufd C:\WinPE E: (E: 是USB flash key所在的磁碟機代號)


完成!
測試開機:



叫出工具程式測試:



懶人包:

1
2
3
4
5
6
7
8
copype amd64 C:\WinPE
dism /mount-wim /wimfile:C:\WinPE\media\sources\boot.wim /index:1 /mountdir:C:\WinPE\mount
dism /image:C:\WinPE\mount /add-driver /driver:C:\driver /recurse
dism /image:C:\WinPE\mount /get-drivers
dism /unmount-wim /mountdir:C:\WinPE\mount /commit
MakeWinPEMedia /iso C:\WinPE C:\WinPE\WinPE.iso

MakeWinPEMedia /ufd C:\WinPE E: (E: 是USB flash key所在的磁碟機代號)


推薦閱讀:
如何用 Windows系統映像管理員(Windows System Image Manager) 製作Windows 10自動安裝回應檔案

2017年4月14日

P4 如何用 Windows系統映像管理員(Windows System Image Manager) 製作Windows 10自動安裝回應檔案
PART IV 如何使用


PART I 準備工作
PART II 瞭解Windows 10安裝過程
PART III 製作自動安裝回應檔案
PART IV 如何使用
PART V 關閉[SMB 1.0/CIFS 檔案共用支援]功能
PART VI 使用DiskPart建立磁碟分割
PART VII 不要預留[保留的儲存空間]
PART VIII 指定電腦名稱與加入網域
PART IX 彈性搭配批次檔使用
PART Max 懶人包

做好了autounattend.xml後要怎麼讓Windows 10自動安裝呢?

方法不只一種, 依照你的需求選擇:

如果你要用USB flash drive開機安裝Windows 10, 那就把autounattend.xml複製到根目錄(跟setup.exe同一層), 開機後setup自己就會根據autounattend.xml的內容去安裝Windows 10.

如果你要用光碟開機安裝Windows 10:
  • 願意動原版ISO內容:
    用像UltraISO的程式編輯ISO, 把autounattend.xml複製到根目錄(跟setup.exe同一層), 燒成另一張光碟或是掛到VM上使用.

  • 不願意動原版ISO內容:
    那就需要有軟碟(floppy disk)或是USB flash key, 一樣是把autounattend.xml複製到根目錄.
由光碟開機後setup自己就會找到autounattend.xml, 並根據其內容去安裝Windows 10.
Floppy disk或是USB flash key最好是non-bootable, 並且除了autounattend.xml沒有別的檔案, 免得安裝安裝過程系統自動重啟結果跳到不對的地方.
如果是用VM測試的話就是準備Windows 10原版ISO配合floppy的映像檔(內包含autounattend.xml)就可以自動安裝了.

有許工具程式可以產生floppy disk的映像檔, 像是UltraISO, MagicISO, WinImage...等.

用VMware Workstation也可以產生floppy disk的映像檔. (先用另一台有OS的VM掛載映像, format後把autounattend.xml複製到根目錄)




做好的autounattend.xml應該類似這樣:
 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<!-- By Proliantaholic https://proliantaholic.blogspot.com -->
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" 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">
            <SetupUILanguage>
                <UILanguage>zh-TW</UILanguage>
            </SetupUILanguage>
            <InputLocale>zh-TW</InputLocale>
            <SystemLocale>zh-TW</SystemLocale>
            <UILanguage>zh-TW</UILanguage>
        </component>
        <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>
                    <Key>W269N-WFGWX-YVC9B-4J6C9-T83GX</Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>500</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>系統保留</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Format>NTFS</Format>
                            <Letter>C</Letter>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/DISPLAYNAME</Key>
                            <Value>Windows 10 Pro</Value>
                        </MetaData>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                </OSImage>
            </ImageInstall>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" 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">
            <InputLocale>zh-TW</InputLocale>
            <SystemLocale>zh-TW</SystemLocale>
            <UILanguage>zh-TW</UILanguage>
            <UserLocale>zh-TW</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-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">
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Description>Administrative User</Description>
                        <DisplayName>admin</DisplayName>
                        <Group>Administrators</Group>
                        <Name>admin</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <OOBE>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
        </component>
    </settings>
</unattend>

透過自動安裝回應檔案可以設定的東西還有很多, 大家可以依照自己的需要再去測試修改.

以下是我用做好的自動安裝回應檔案在VM上安裝Windows 10的過程畫面, 可以看到在安裝過程中並不需要輸入任何資料或選擇東西. 到最後會以admin使用者登入(需要輸入password), 到達桌面後Windows 10安裝便完成了.





繼續閱讀:
PART V 關閉[SMB 1.0/CIFS 檔案共用支援]功能

P3 如何用 Windows系統映像管理員(Windows System Image Manager) 製作Windows 10自動安裝回應檔案
PART III 製作自動安裝回應檔案


PART I 準備工作
PART II 瞭解Windows 10安裝過程
PART III 製作自動安裝回應檔案
PART IV 如何使用
PART V 關閉[SMB 1.0/CIFS 檔案共用支援]功能
PART VI 使用DiskPart建立磁碟分割
PART VII 不要預留[保留的儲存空間]
PART VIII 指定電腦名稱與加入網域
PART IX 彈性搭配批次檔使用
PART Max 懶人包

瞭解了安裝Windows 10時在各階段需要做的事情, 接下來回到在Part I安裝好的Windows系統映像管理員. 類別目錄檔產生後就可以開始建立回應檔案.



展開左下角Windows 映像裡面的Components, 因為是要製作給64位元的Windows 10安裝用, 記得要選取amd64開頭的元件, 而非wow64或是x86開頭的.




首先針對[windowsPE]階段要處理的事項:
  • 選擇語言, 時間貨幣格式, 鍵盤輸入法
  • 輸入產品金鑰
  • 選取作業系統版本
  • 接受授權條款
  • 配置並選取安裝Windows的磁碟空間
[選擇語言, 時間貨幣格式, 鍵盤輸入法]
在Components處找尋[amd64_Microsoft-Windows-International-Core-WinPE]
按滑鼠右鍵選擇[將設定新增至 Pass 1 windowsPE]


按照下圖在右邊的內容設定中輸入相關的設定值:



[接受授權條款]
[輸入產品金鑰]
在Components處找尋[amd64_Microsoft-Windows-Setup], 選取並展開
在[UserData]底下的[ProductKey]上按滑鼠右鍵選擇[將設定新增至 Pass 1 windowsPE]
 
按照下圖在右邊的內容設定中輸入相關的設定值:

自動安裝回應檔案裡面如果沒有產品金鑰會安裝失敗, 所以先使用Windows 10專業版[KMS用戶端安裝識別碼, KMS Client Setup Keys]來安裝


[配置並選取安裝Windows的磁碟空間]
在Components處找尋[amd64_Microsoft-Windows-Setup], 選取並展開
在[DiskConfiguration]上按滑鼠右鍵選擇[將設定新增至 Pass 1 windowsPE]



在[DiskConfiguration]上按滑鼠右鍵選擇[插入新的Disk]


[CreatePartitions]跟[ModifyPartitions]也比照辦理. (各新增兩個)



依照我測試的結果, 手動安裝Windows時, 安裝程式會建立兩個partitions.
第一個partition是500 MB, 第二個partition則是用掉剩餘空間.


按照下圖在右邊的內容設定中輸入相關的設定值:







[選取作業系統版本]
在Components處找尋[amd64_Microsoft-Windows-Setup], 選取並展開
在[ImageInstall]底下的[OSImage]上按滑鼠右鍵選擇[將設定新增至 Pass 1 windowsPE]



在[InstallFrom]上按滑鼠右鍵選擇[插入新的MetaData]

在[Credentials]上按滑鼠右鍵選擇[刪除]


按照下圖在右邊的內容設定中輸入相關的設定值:





在[選取作業系統版本]裡面用到的/IMAGE/DISPLAYNAME有很多方法可以獲得, 列舉其中一些:
* Windows安裝程式中所顯示的

* 用DISM查看install.wim (例如: Dism /Get-ImageInfo /ImageFile:C:\install.wim)

* 用Windows系統映像管理員打開install.wim時所顯示的




進行到這裡[windowsPE]階段的設定已經完成, 先儲存並驗證回應檔案有無錯誤, 將檔案名稱設定為autounattend.xml




此時的autounattend.xml應該類似這樣:
 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<!-- By Proliantaholic https://proliantaholic.blogspot.com -->
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" 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">
            <SetupUILanguage>
                <UILanguage>zh-TW</UILanguage>
            </SetupUILanguage>
            <InputLocale>zh-TW</InputLocale>
            <SystemLocale>zh-TW</SystemLocale>
            <UILanguage>zh-TW</UILanguage>
        </component>
        <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>
                    <Key>W269N-WFGWX-YVC9B-4J6C9-T83GX</Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>500</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>系統保留</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Format>NTFS</Format>
                            <Letter>C</Letter>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/DISPLAYNAME</Key>
                            <Value>Windows 10 Pro</Value>
                        </MetaData>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                </OSImage>
            </ImageInstall>
        </component>
    </settings>
</unattend>


建議可以先依照PART IV的方法測試看看有沒有問題後再繼續, 如果一切正常的話, Windows 10安裝程式應該會停在這個畫面:




再來處理[oobeSystem]階段:
  • 選擇區域
  • 選擇鍵盤配置
  • 設定帳號 (本地帳號)
  • 新增使用者
  • 建立密碼
  • 隱私設定
[選擇區域]
[選擇鍵盤配置]
在Components處找尋[amd64_Microsoft-Windows-International-Core]
按滑鼠右鍵選擇[將設定新增至 Pass 7 oobeSystem]


按照下圖在右邊的內容設定中輸入相關的設定值:


[設定帳號 (本地帳號)]
[新增使用者]
[建立密碼]
在Components處找尋[amd64_Microsoft-Windows-Shell-Setup], 選取並展開
在[UserAccounts]底下的[LocalAccounts]上按滑鼠右鍵選擇[將設定新增至 Pass 7 oobeSystem]


在[LocalAccounts]上按滑鼠右鍵選擇[插入新的LocalAccount]


按照下圖在右邊的內容設定中輸入相關的設定值:
這樣會新增一個名為admin的帳號, 屬於Administrators群組, 密碼是password


在輸入密碼前先點選[工具], 看看[隱藏敏感資料]是否有打勾, 這樣才不會將密碼以明碼方式寫入回應檔案.


儲存回應檔案時密碼就會被編碼, 下次再用Windows系統映像管理員打開時就部會看到明碼了.



[隱私設定]
在Components處找尋[amd64_Microsoft-Windows-Shell-Setup], 選取並展開
在[OOBE]上按滑鼠右鍵選擇[將設定新增至 Pass 7 oobeSystem]


按照下圖在右邊的內容設定中輸入相關的設定值:
在[VMModeOptimizations]上按滑鼠右鍵選擇[刪除]


我不喜歡[隱私設定][位置]那類資訊預設都是開啟, 所以我把[ProtectYourPC]設定為3, 預設值應該是1.


驗證回應檔案, 儲存回應檔案(autounattend.xml), 製作自動安裝回應檔案完成.




參考資料:




繼續閱讀:
PART IV 如何使用

版權宣告

Creative Commons License
本著作由 PROLIANTAHOLIC 製作,以創用CC 姓名標示-非商業性-禁止改作 3.0 台灣 授權條款釋出。
文內所述之產品和公司名稱均為其各自擁有者的商標及(或)服務標記。