From 746111a54c98093c0ea7af14a9fbabbea354d3ef Mon Sep 17 00:00:00 2001 From: dyoder Date: Sun, 12 Sep 2021 13:56:16 -0400 Subject: [PATCH] update --- Install-AteraAgent.ps1 | 3 ++- Install-MSP360PowershellModule.ps1 | 2 ++ Set-MSP360EditionDesktop.ps1 | 4 ++++ rmm/Install-MSP360PowershellModule.ps1 | 2 ++ rmm/Set-MSP360EditionDesktop.ps1 | 2 ++ 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Install-MSP360PowershellModule.ps1 create mode 100644 Set-MSP360EditionDesktop.ps1 create mode 100644 rmm/Install-MSP360PowershellModule.ps1 create mode 100644 rmm/Set-MSP360EditionDesktop.ps1 diff --git a/Install-AteraAgent.ps1 b/Install-AteraAgent.ps1 index 325b300..aadd53c 100644 --- a/Install-AteraAgent.ps1 +++ b/Install-AteraAgent.ps1 @@ -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 diff --git a/Install-MSP360PowershellModule.ps1 b/Install-MSP360PowershellModule.ps1 new file mode 100644 index 0000000..ade9981 --- /dev/null +++ b/Install-MSP360PowershellModule.ps1 @@ -0,0 +1,2 @@ +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA')+'Install-MSP360Module') \ No newline at end of file diff --git a/Set-MSP360EditionDesktop.ps1 b/Set-MSP360EditionDesktop.ps1 new file mode 100644 index 0000000..c82b3a5 --- /dev/null +++ b/Set-MSP360EditionDesktop.ps1 @@ -0,0 +1,4 @@ +Import-Module -Name msp360 + +## Set the agent edition to Desktop +Set-MBSAgentSetting -Edition desktop \ No newline at end of file diff --git a/rmm/Install-MSP360PowershellModule.ps1 b/rmm/Install-MSP360PowershellModule.ps1 new file mode 100644 index 0000000..f413a99 --- /dev/null +++ b/rmm/Install-MSP360PowershellModule.ps1 @@ -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 \ No newline at end of file diff --git a/rmm/Set-MSP360EditionDesktop.ps1 b/rmm/Set-MSP360EditionDesktop.ps1 new file mode 100644 index 0000000..00f48eb --- /dev/null +++ b/rmm/Set-MSP360EditionDesktop.ps1 @@ -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 \ No newline at end of file