huntresslabs / deployment-scripts

RMM deployment scripts for Huntress
37 stars 33 forks source link

Increased compatibility with legacy OS #50

Closed Alan-Huntress closed 1 year ago

Alan-Huntress commented 1 year ago

Older versions of PoSh didn't support this additive operation [Net.ServicePointManager]::SecurityProtocol += .... So switching to the more compatible binary OR operator (tested as far back as PoSh 2.0) Also cleaned up the protocol assignment to use the actual ENUM instead of the number to make it easier to read

Alan-Huntress commented 1 year ago

I did a cursory look through our other deploy scripts and this does appear to be the only one that wasn't already using the -BOR operator