break apart long line
This commit is contained in:
@@ -575,7 +575,9 @@ Function Install-MSP360Module {
|
|||||||
If ( (-not $module) -and (IsAdmin) ) {
|
If ( (-not $module) -and (IsAdmin) ) {
|
||||||
Write-Output "Installing MSP360 Powershell module"
|
Write-Output "Installing MSP360 Powershell module"
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
|
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)) ) {
|
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"
|
Write-Output "The MSP360 Powershell module needs to be installed, but the current security context is not sufficient to install it"
|
||||||
|
|||||||
Reference in New Issue
Block a user