??????????????Nano Server?????Щ?????????????IP?????????????????????????????Nano Server?????????????????????????dism?????????????в?????
???????????IP???
????????dism?????????????????Nano???????????????????????????????????DHCP??????????????Nano Server??????????????????????Nano Server???????????IP???????????????DHCP???????????????????Nano???IP??????????ú??????????y????????
????1?????????Nano??б???????????????????????????á???PS:??????????????????????????????????????
????dism /Mount-Image /ImageFile:.Nano.vhdx /Index:1 /MountDir:.mountdir

????2???????Windows?????Setup??????У?????Setup???????Scripts??????У????·????<mountdir>WindowsSetupScripts?? ??????IP??????????????????PS??????????????????SetupComplete.cmd??

????3????????SetupComplete.cmd?????????IP?????10.0.0.2?????
????netsh interface ip set address "Ethernet0" static 10.0.0.2 255.255.255.0 10.0.0.254 1
????netsh interface ip set dnsservers name="Ethernet0" static 10.0.0.1 primary
????netsh advfirewall set domainprofile state off
????netsh advfirewall set privateprofile state off
????netsh advfirewall set publicprofile state off
????netsh advfirewall set currentprofile state off

???????????ü????????
?????????Nano Server????м??????????????????滮??????????????????????á??????????????????????????ü????????
????4??????dism????????????Nano??????????????????????????????????unattend.xml??
????dism /Image:.mountdir /Apply-Unattend:.unattend.xml