两侧同时换到之前的修订记录前一修订版 | 上一修订版两侧同时换到之后的修订记录 |
drserver:makeddwindowswithnicdriver [2018/08/08 22:39] – liujia | drserver:makeddwindowswithnicdriver [2018/08/10 14:19] – liujia |
---|
<FirstLogonCommands> | <FirstLogonCommands> |
<SynchronousCommand wcm:action="add"> | <SynchronousCommand wcm:action="add"> |
<CommandLine>powershell.exe Get-NetAdapter -Name * | ? status -eq up | Rename-NetAdapter -NewName "iEtherNet" | New-NetIPAddress -IPAddress "144.172.126.32" -InterfaceAlias "iEtherNet" -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"> |
| <CommandLine>powershell.exe New-NetIPAddress -IPAddress "144.172.126.32" -InterfaceAlias "iEtherNet" -PrefixLength 24 -DefaultGateway 144.172.126.1</CommandLine> |
| <Description>set static ip address</Description> |
| <Order>2</Order> |
| </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> |
* 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/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/ |