update
This commit is contained in:
@@ -44,7 +44,8 @@ If ( $INSTALL ) {
|
||||
|
||||
## Install the agent
|
||||
LogMsg "Installing Atera agent"
|
||||
Try { Start-Process "msiexec.exe" -ArgumentList "/i ""${AGENT_INSTALLER}"" /qn /norestart" -Wait }
|
||||
#Try { Start-Process "msiexec.exe" -ArgumentList "/i ""${AGENT_INSTALLER}"" /qn /norestart" -Wait }
|
||||
Try { Start-Process "msiexec.exe" -ArgumentList "/i ""${AGENT_INSTALLER}"" /qn /norestart INTEGRATORLOGIN=${INTEGRATOR_ID} COMPANYID=${CUSTOMER_ID}" -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
|
||||
## Delete the agent installer
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA')+'Install-MSP360Module')
|
||||
@@ -0,0 +1,4 @@
|
||||
Import-Module -Name msp360
|
||||
|
||||
## Set the agent edition to Desktop
|
||||
Set-MBSAgentSetting -Edition desktop
|
||||
@@ -0,0 +1,2 @@
|
||||
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
|
||||
Run-Script -LivePSScript Install-MSP360PowershellModule
|
||||
@@ -0,0 +1,2 @@
|
||||
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
|
||||
Run-Script -LivePSScript Set-MSP360EditionDesktop
|
||||
Reference in New Issue
Block a user