remove PSAtera, add default injection position
This commit is contained in:
@@ -1,22 +1,10 @@
|
||||
## Path to the MSI installer
|
||||
$MSIURL = 'https://lfupdate.s3.amazonaws.com/clients/outlook/admin_msi/LiquidFiles_Admin_2.0.132.msi'
|
||||
|
||||
Install-PSAteraModule
|
||||
Import-Module -Name PSAtera
|
||||
|
||||
## Get LF host URL from Atera
|
||||
LogMsg "Getting LiquidFiles host URL from Atera API"
|
||||
Try {
|
||||
Set-AteraAPIKey -APIKey $AteraAPIKey
|
||||
$AteraAgent = Get-AteraAgent
|
||||
$LFHost = $(Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'LiquidFiles Host URL').ValueAsString
|
||||
}
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
|
||||
## Set installer args
|
||||
If (-not [string]::IsNullOrEmpty($LFHost) ) {
|
||||
LogMsg "LiquidFiles target server: ${LFHost}"
|
||||
$INSTALLER_ARGS = "REGKEYSCRIPT=""BaseUrl=${LFHost};"""
|
||||
$INSTALLER_ARGS = "REGKEYSCRIPT=""BaseUrl=${LFHost};InjectPositionDefault=3"""
|
||||
}
|
||||
Else { $INSTALLER_ARGS = '' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user