Skip to content

Commit

Permalink
Fixing copy/pasta error between scripts (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkatyl authored Jan 5, 2024
1 parent cbe4992 commit fe58e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daisy_workflows/image_build/windows/post_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,11 @@ function Configure-RDP {

# Allow RPD inbound. Win10/2016 and above set using PowerShell and older versions set using netsh.
if ([System.Environment]::OSVersion.Version.Major -ge 10 -and [System.Environment]::OSVersion.Version.Build -ge 10240) {
Write-Log "Enabling RDP firewall rules using PowerShell."
Write-Host "Enabling RDP firewall rules using PowerShell."
Set-NetFirewallRule -DisplayGroup 'Remote Desktop' -Enabled True
}
else {
Write-Log "Enabling RDP firewall rules using netsh."
Write-Host "Enabling RDP firewall rules using netsh."
Run-Command netsh advfirewall firewall set rule group='remote desktop' new enable=Yes
}
}
Expand Down

0 comments on commit fe58e72

Please sign in to comment.