Attempt native imagebuilder image
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2023-02-23 21:17:50 +01:00
parent 1ffdb79f41
commit a32a6c9c0c
430 changed files with 19 additions and 18 deletions

View File

@@ -0,0 +1,8 @@
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=block
netsh advfirewall firewall set rule group="Windows Remote Management" new enable=yes
$winrmService = Get-Service -Name WinRM
if ($winrmService.Status -eq "Running"){
Disable-PSRemoting -Force
}
Stop-Service winrm
Set-Service -Name winrm -StartupType Disabled