drserver:unattendxmlforwindows2008r2sp1
差别
两侧同时换到之前的修订记录前一修订版 | 后一修订版两侧同时换到之后的修订记录 |
drserver:unattendxmlforwindows2008r2sp1 [2018/08/31 18:08] – liujia | drserver:unattendxmlforwindows2008r2sp1 [2018/08/31 18:33] – liujia |
---|
<FirstLogonCommands> | <FirstLogonCommands> |
<SynchronousCommand wcm:action="add"> | <SynchronousCommand wcm:action="add"> |
<CommandLine>powershell.exe -noprofile -executionpolicy bypass -command "$wmi = Get-WmiObject -Class Win32_NetworkAdapter -Filter "netconnectionstatus=2"; $wmi.NetConnectionID = 'iEthernet'; $wmi.Put()"</CommandLine> | <CommandLine>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy bypass -command "$wmi = Get-WmiObject -Class Win32_NetworkAdapter -Filter "netconnectionstatus=2"; $wmi.NetConnectionID = 'iEthernet'; $wmi.Put()"</CommandLine> |
<Description>rename nic name</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 -noprofile -executionpolicy bypass -command "Set-Content C:\test 'WHATTHEHELL' -force; Set-Content C:\test2 'liujia' -force"</CommandLine> | <CommandLine>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy bypass -command "Set-Content C:\test 'WHATTHEHELL' -force; Set-Content C:\test2 'liujia' -force"</CommandLine> |
<Description>rename nic name</Description> | <Description>rename nic name</Description> |
<Order>8</Order> | <Order>8</Order> |
drserver/unattendxmlforwindows2008r2sp1.txt · 最后更改: 2018/10/26 21:47 由 liujia