It will ask a bunch of questions on where the Icinga PowerShell Framework should be downloaded from and where it should be installed. The Script file from will be downloaded and executed within your current PowerShell instance. Last but not least we will set the progress preference to Silentl圜ontinue, ensuring the PowerShell progress bar will not slow down our installation. The ServicePointManager part will ensure communication is possible to GitHub for example, as by default PowerShell will be unable to open a secure connection otherwise. What this block will do is to download the PowerShell Script from the repository, add it into a ScriptBlock to allow execution and finally execute it. Content $Script += " `r`n`r`n Start-IcingaFrameworkWizard " Invoke-Command -ScriptBlock ( :: Create ( $Script )) :: SecurityProtocol = "tls12, tls11" $ProgressPreference = "Silentl圜ontinue" $global:IcingaFrameworkKickstartSource = '' $Script = ( Invoke-WebRequest -UseBasicParsing -Uri $global:IcingaFrameworkKickstartSource ). Note on Start-IcingaFrameworkWizard and automationĪutomation Example 1: Use local web server for Framework downloadĪutomation Example 2: Use local/network path for Framework "download"Įxecute the Icinga Agent installation wizard
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |