immense / Remotely

A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
GNU General Public License v3.0
4.47k stars 1.61k forks source link

BUG : Powershell installer will not work for versions below 5.0 #824

Open emtec-jim opened 7 months ago

emtec-jim commented 7 months ago

The new powershell installer fails on older versions of Powershell (pre 5.0) due to lack of native support for GUID generation and file unzip.

To Reproduce Steps to reproduce the behavior: 1 : Download the Powershell resident installer from your Remotely server. 2 : Attempt to install on any machine with a Powershell version prior to 5.0 (eg. Windows server 2012/2012r2) 3 : Installation fails.

Remotely Version Server (can be found on about page): 2024.02.22.1231 Agent (can be found in device card): 2024.02.22.1231

Expected Behavior Installation should complete normally.

Desktop (please complete the following information):

Additional Context This is a relatively simple issue to correct, there are only two unsupported functions used both of which have suitable replacements. I have attached a patch file with the necessary corrections to make the Powershell script compatible with all versions of Powershell (tested on 2.0 & 4.0 - can't test 1.0 as I don't have a test system to hand).

remotely-powershell-patch.patch