官术网_书友最值得收藏!

Customizing a Nano image using unattend.xml file

To customize Nano Server using DISM so you can manage it remotely, you need to set an administrator password.

The simplest way is using an unattend.xml file, as shown in the following example:

<?xml version='1.0' encoding='utf-8'?> 
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<settings pass="offlineServicing">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ComputerName>NanoServer01</ComputerName>
</component>
</settings>

<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<UserAccounts>
<AdministratorPassword>
<Value>Passw0rd!</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
</UserAccounts>
<TimeZone>Romance Standard Time</TimeZone>
</component>
</settings>

<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<RegisteredOwner>My Team</RegisteredOwner>
<RegisteredOrganization>My Corporation</RegisteredOrganization>
</component>
</settings>
</unattend>

In this sample, the unattend.xml file does not add the Nano Server to a domain. Therefore, you should use it if you want to run the Nano Server as a standalone machine or if you want to wait and join it later to a domain. The values for ComputerName and AdministratorPassword are merely examples.

Please note that by using unattend.xml you can also include domain join information. We will get into that in a bit.

The unattend.xml file must be placed under the C:\Windows\panther folder in the Nano Server image.

You can download a sample of unattend.xml file for standalone and domain joined as a companion to this book.
主站蜘蛛池模板: 永修县| 垣曲县| 洪雅县| 东山县| 福海县| 封开县| 集贤县| 新野县| 隆子县| 邹平县| 高淳县| 阿尔山市| 河西区| 酒泉市| 内乡县| 乌苏市| 大竹县| 鄂伦春自治旗| 军事| 钟山县| 淅川县| 裕民县| 和平县| 靖安县| 凤山县| 页游| 盘锦市| 汤原县| 招远市| 厦门市| 五峰| 武冈市| 新绛县| 类乌齐县| 张家港市| 巧家县| 镇康县| 三门峡市| 富平县| 桦南县| 比如县|