CfbsAzureBCDeployment.psm1
Set-StrictMode -Version 2.0 $verbosePreference = "SilentlyContinue" $warningPreference = 'Continue' $errorActionPreference = 'Stop' if ([intptr]::Size -eq 4) { throw "CfbsAzureBCDeployment cannot run in Windows PowerShell (x86), need 64bit mode" } $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) $isAdministrator = $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) if ($isAdministrator -eq $false) { Check-NavContainerHelperPermissions -Fix -Silent } # Install . (Join-Path $PSScriptRoot "BCInstall\Get-BCFile.ps1") . (Join-Path $PSScriptRoot "BCInstall\Get-BCArtifact.ps1") . (Join-Path $PSScriptRoot "BCInstall\Install-BCVersion.ps1") # Helper Functions . (Join-Path $PSScriptRoot "HelperFunctions\Install-Prerequisite.ps1") . (Join-Path $PSScriptRoot "HelperFunctions\Install-IiServer.ps1") . (Join-Path $PSScriptRoot "HelperFunctions\New-Shortcut.ps1") . (Join-Path $PSScriptRoot "HelperFunctions\Install-Font.ps1") |