|
@@ -310,15 +310,6 @@
|
|
|
<component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
<UserAuthentication>0</UserAuthentication>
|
|
|
</component>
|
|
|
- <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
- <FirewallGroups>
|
|
|
- <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
|
|
|
- <Active>true</Active>
|
|
|
- <Group>Remote Desktop</Group>
|
|
|
- <Profile>all</Profile>
|
|
|
- </FirewallGroup>
|
|
|
- </FirewallGroups>
|
|
|
- </component>
|
|
|
</settings>
|
|
|
<settings pass="auditSystem" />
|
|
|
<settings pass="auditUser" />
|
|
@@ -466,26 +457,31 @@
|
|
|
</SynchronousCommand>
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
<Order>20</Order>
|
|
|
- <CommandLine>netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes</CommandLine>
|
|
|
+ <CommandLine>powershell -ExecutionPolicy ByPass -Command "Enable-NetFirewallRule -DisplayGroup @(Get-NetFirewallRule | Where-Object Name -Match "NetDIS.*" | Select-Object DisplayGroup -Unique | % DisplayGroup)"</CommandLine>
|
|
|
<Description>Enable Network Discovery</Description>
|
|
|
</SynchronousCommand>
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
<Order>21</Order>
|
|
|
- <CommandLine>netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes</CommandLine>
|
|
|
+ <CommandLine>powershell -ExecutionPolicy ByPass -Command "Enable-NetFirewallRule -DisplayGroup @(Get-NetFirewallRule | Where-Object Name -Match "FPS-.*" | Select-Object DisplayGroup -Unique | % DisplayGroup)"</CommandLine>
|
|
|
<Description>Enable File Sharing</Description>
|
|
|
</SynchronousCommand>
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
- <Order>22</Order>
|
|
|
+ <Order>23</Order>
|
|
|
+ <CommandLine>powershell -ExecutionPolicy ByPass -Command "Enable-NetFirewallRule -DisplayGroup @(Get-NetFirewallRule | Where-Object Name -Match "RemoteDesktop-[^I].*" | Select-Object DisplayGroup -Unique | % DisplayGroup)"</CommandLine>
|
|
|
+ <Description>Add RDP in firewall</Description>
|
|
|
+ </SynchronousCommand>
|
|
|
+ <SynchronousCommand wcm:action="add">
|
|
|
+ <Order>23</Order>
|
|
|
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f</CommandLine>
|
|
|
<Description>Disable unsupported hardware notifications</Description>
|
|
|
</SynchronousCommand>
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
- <Order>23</Order>
|
|
|
+ <Order>24</Order>
|
|
|
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f</CommandLine>
|
|
|
<Description>Disable unsupported hardware notifications</Description>
|
|
|
</SynchronousCommand>
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
- <Order>24</Order>
|
|
|
+ <Order>25</Order>
|
|
|
<CommandLine>cmd /C if exist "C:\OEM\install.bat" start "Install" "cmd /C C:\OEM\install.bat"</CommandLine>
|
|
|
<Description>Execute custom script from the OEM folder if exists</Description>
|
|
|
</SynchronousCommand>
|