functions/Install-S1Portal.ps1
<#
.SYNOPSIS Short description .DESCRIPTION Long description .EXAMPLE PS C:\> <example usage> Explanation of what the example does .INPUTS Inputs (if any) .OUTPUTS Output (if any) .NOTES General notes #> function Install-S1Portal { [CmdletBinding()] param ( ) begin { } process { #https://docs.sentryone.com/help/sentryone-portal-on-premises #https://docs.sentryone.com/help/sentryone-installer#install-sentryone-portal $connection = "local" $connections = List-S1Connections if ($connections.ContainsKey($connection)) { write-Host "Installing Portal" # so installmp --IAcceptLicenseTerms -n $connection -s localhost -u SentryOne -p <pwd> -v #so installmp --IAcceptLicenseTerms --connectionUseIntegrated false --server $env:COMPUTERNAME --connectionServer localhost --connectionDatabase SentryOne --connectionUsername SentryOneSQL --connectionPassword >pwd? # } } end { } } #SentryOne |