break apart long line

This commit is contained in:
2023-12-07 10:38:45 -05:00
parent 8a12219565
commit c94b375aec
+3 -1
View File
@@ -575,7 +575,9 @@ Function Install-MSP360Module {
If ( (-not $module) -and (IsAdmin) ) {
Write-Output "Installing MSP360 Powershell module"
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA'); Install-MSP360Module
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA')
Install-MSP360Module
}
ElseIf ( (-not $module) -and (-not (IsAdmin)) ) {
Write-Output "The MSP360 Powershell module needs to be installed, but the current security context is not sufficient to install it"