用户工具

站点工具


drserver:unattendxmlforwindows2008r2sp1

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
drserver:unattendxmlforwindows2008r2sp1 [2018/08/31 18:33] liujiadrserver:unattendxmlforwindows2008r2sp1 [2018/10/26 21:47] (当前版本) liujia
行 34: 行 34:
             <FirstLogonCommands>             <FirstLogonCommands>
                 <SynchronousCommand wcm:action="add">                 <SynchronousCommand wcm:action="add">
-                    <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>+                    <CommandLine>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -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>
行 67: 行 67:
                     <Description>Block_TCP-445</Description>                     <Description>Block_TCP-445</Description>
                     <Order>7</Order>                     <Order>7</Order>
-                </SynchronousCommand>+                </SynchronousCommand>               
                 <SynchronousCommand wcm:action="add">                 <SynchronousCommand wcm:action="add">
-                    <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> +                    <CommandLine>netsh advfirewall firewall add rule dir=in action=allow protocol=TCP localport=3389 name="Allow_TCP-3389"</CommandLine> 
-                    <Description>rename nic name</Description>+                    <Description>Allow_TCP-3389</Description>
                     <Order>8</Order>                     <Order>8</Order>
-                </SynchronousCommand>                +                </SynchronousCommand>
                 <SynchronousCommand wcm:action="add">                 <SynchronousCommand wcm:action="add">
-                    <CommandLine>netsh advfirewall firewall add rule dir=in action=allow protocol=TCP localport=3389 name="Allow_TCP-3389"</CommandLine> +                    <CommandLine>netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow</CommandLine> 
-                    <Description>Allow_TCP-3389</Description>+                    <Description>Allow_ping9</Description>
                     <Order>9</Order>                     <Order>9</Order>
-                </SynchronousCommand>                                                                                                  +                </SynchronousCommand>                                                                                                                  
             </FirstLogonCommands>                       </FirstLogonCommands>          
             <UserAccounts>             <UserAccounts>
drserver/unattendxmlforwindows2008r2sp1.txt · 最后更改: 2018/10/26 21:47 由 liujia