From 8bcd3b138edc55aeb4d8d1e300941b2baf588233 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Thu, 16 Jan 2020 18:44:52 -0800 Subject: [PATCH] Fix script. --- Server/wwwroot/Downloads/Install-Win10-x64.ps1 | 2 +- Server/wwwroot/Downloads/Install-Win10-x86.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/wwwroot/Downloads/Install-Win10-x64.ps1 b/Server/wwwroot/Downloads/Install-Win10-x64.ps1 index 2a929988..6067a395 100644 --- a/Server/wwwroot/Downloads/Install-Win10-x64.ps1 +++ b/Server/wwwroot/Downloads/Install-Win10-x64.ps1 @@ -121,7 +121,7 @@ function Install-Remotely { Start-Process -FilePath "cmd.exe" -ArgumentList "/c sc.exe failure `"Remotely_Service`" reset=5 actions=restart/5000" -Wait -WindowStyle Hidden Start-Service -Name Remotely_Service - New-NetFirewallRule -Name "Remotely ScreenCast" -DisplayName "Remotely ScreenCast" -Description "The agent that allows screen sharing and remote control for Remotely." -Direction Inbound -Enabled True -Action Allow -Program "C:\Program Files\Remotely\ScreenCast\Remotely_ScreenCast.exe"Remove-NetFirewallRule -Name "Remotely ScreenCast" + New-NetFirewallRule -Name "Remotely ScreenCast" -DisplayName "Remotely ScreenCast" -Description "The agent that allows screen sharing and remote control for Remotely." -Direction Inbound -Enabled True -Action Allow -Program "C:\Program Files\Remotely\ScreenCast\Remotely_ScreenCast.exe" } function Install-DesktopRuntime() { diff --git a/Server/wwwroot/Downloads/Install-Win10-x86.ps1 b/Server/wwwroot/Downloads/Install-Win10-x86.ps1 index f1c828a7..9034707b 100644 --- a/Server/wwwroot/Downloads/Install-Win10-x86.ps1 +++ b/Server/wwwroot/Downloads/Install-Win10-x86.ps1 @@ -116,7 +116,7 @@ function Install-Remotely { Start-Process -FilePath "cmd.exe" -ArgumentList "/c sc.exe failure `"Remotely_Service`" reset=5 actions=restart/5000" -Wait -WindowStyle Hidden Start-Service -Name Remotely_Service - New-NetFirewallRule -Name "Remotely ScreenCast" -DisplayName "Remotely ScreenCast" -Description "The agent that allows screen sharing and remote control for Remotely." -Direction Inbound -Enabled True -Action Allow -Program "C:\Program Files\Remotely\ScreenCast\Remotely_ScreenCast.exe"Remove-NetFirewallRule -Name "Remotely ScreenCast" + New-NetFirewallRule -Name "Remotely ScreenCast" -DisplayName "Remotely ScreenCast" -Description "The agent that allows screen sharing and remote control for Remotely." -Direction Inbound -Enabled True -Action Allow -Program "C:\Program Files\Remotely\ScreenCast\Remotely_ScreenCast.exe" } function Install-DesktopRuntime() {