用户工具

站点工具


drserver:makeddwindowswithnicdriver

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
drserver:makeddwindowswithnicdriver [2018/08/08 17:02] – 创建 liujiadrserver:makeddwindowswithnicdriver [2018/08/11 16:03] (当前版本) liujia
行 20: 行 20:
  
 /Windows/panther/Unattend.xml 文件内容: /Windows/panther/Unattend.xml 文件内容:
-<file xml Unattend>+<file xml Unattend.xml>
 <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
 <unattend xmlns="urn:schemas-microsoft-com:unattend"> <unattend xmlns="urn:schemas-microsoft-com:unattend">
行 62: 行 62:
             <FirstLogonCommands>             <FirstLogonCommands>
                 <SynchronousCommand wcm:action="add">                 <SynchronousCommand wcm:action="add">
-                    <CommandLine>powershell.exe New-NetIPAddress -IPAddress "144.172.126.32" -InterfaceAlias "以太网-PrefixLength 24 -DefaultGateway 144.172.126.1</CommandLine> +                    <CommandLine>powershell.exe Get-NetAdapter -Name *  | ? status -eq up | Rename-NetAdapter -NewName "iEtherNet"</CommandLine> 
-                    <Description>Description_of_command1</Description>+                    <Description>rename nic name</Description>
                     <Order>1</Order>                     <Order>1</Order>
                 </SynchronousCommand>                 </SynchronousCommand>
                 <SynchronousCommand wcm:action="add">                 <SynchronousCommand wcm:action="add">
-                    <CommandLine>powershell.exe New-NetIPAddress -IPAddress "144.172.126.32" -InterfaceAlias "以太网 2" -PrefixLength 24 -DefaultGateway 144.172.126.1</CommandLine> +                    <CommandLine>powershell.exe New-NetIPAddress -IPAddress "144.172.126.32" -InterfaceAlias "iEtherNet" -PrefixLength 24 -DefaultGateway 144.172.126.1</CommandLine> 
-                    <Description>Description_of_command1</Description>+                    <Description>set static ip address</Description>
                     <Order>2</Order>                     <Order>2</Order>
                 </SynchronousCommand>                 </SynchronousCommand>
 +                <SynchronousCommand wcm:action="add">
 +                    <CommandLine>powershell.exe Set-DnsClientServerAddress -InterfaceAlias "iEtherNet" -ServerAddresses 8.8.8.8</CommandLine>
 +                    <Description>set dns server</Description>
 +                    <Order>3</Order>
 +                </SynchronousCommand>                                 
             </FirstLogonCommands>             </FirstLogonCommands>
             <UserAccounts>             <UserAccounts>
行 90: 行 95:
  
 参考: 参考:
- https://www.fmqcloud.com/archives/makedd.html +  * https://www.fmqcloud.com/archives/makedd.html 
- https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation +  https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation 
- https://github.com/wellsluo/DeployVHD/blob/master/README-CN.md +  https://github.com/wellsluo/DeployVHD/blob/master/README-CN.md 
- https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-shell-setup-firstlogoncommands +  https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-shell-setup-firstlogoncommands 
- https://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=win10-ps +  https://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=win10-ps 
- https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-tcpip-interfaces-interface-unicastipaddresses-ipaddress +  https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-tcpip-interfaces-interface-unicastipaddresses-ipaddress 
- https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/networking-mpssvc-svc-firewallgroups-firewallgroup +  https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/networking-mpssvc-svc-firewallgroups-firewallgroup 
- https://github.com/cloudbase/unattended-setup-scripts/blob/master/Autounattend.xml +  https://github.com/cloudbase/unattended-setup-scripts/blob/master/Autounattend.xml 
- https://www.starwindsoftware.com/blog/specialize-windows-server-hyper-v-guest-os-automatically+  https://www.starwindsoftware.com/blog/specialize-windows-server-hyper-v-guest-os-automatically 
 +  * https://blogs.technet.microsoft.com/heyscriptingguy/2012/09/06/use-powershell-3-0-to-rename-network-adapters/ 
 +  * https://blogs.technet.microsoft.com/heyscriptingguy/2012/11/21/use-powershell-to-configure-the-nic-on-windows-server-2012/
drserver/makeddwindowswithnicdriver.1533718930.txt.gz · 最后更改: 2018/08/08 17:02 由 liujia