diff --git a/setupOffice.ps1 b/setupOffice.ps1 index fe6cfcb..233bf09 100644 --- a/setupOffice.ps1 +++ b/setupOffice.ps1 @@ -19,7 +19,7 @@ function InstallOffice { Write-Host "Office setup files not found." } } - else if ($mode -eq "online") { + elseif ($mode -eq "online") { DownloadFiles -Type "Office-online" $setupPath = Join-Path $tmpPath "OfficeSetup.exe" Write-Host "Starting Microsoft Office Installation..." diff --git a/setupRDP.ps1 b/setupRDP.ps1 index 9721ef7..2441cbd 100644 --- a/setupRDP.ps1 +++ b/setupRDP.ps1 @@ -14,7 +14,7 @@ function DisableRDP { function SetupRDP { param ( - [bool] enable + [bool] $enable ) if ($enable) { EnableRDP diff --git a/setupWDAC.ps1 b/setupWDAC.ps1 index 04ea666..bd9bd48 100644 --- a/setupWDAC.ps1 +++ b/setupWDAC.ps1 @@ -39,7 +39,7 @@ function Show-WDACMenu { function SetupWDAC { param ( - [bool] enable + [bool] $enable ) if ($enable) { if (Test-Path -Path "C:\Windows\System32\CodeIntegrity\CiPolicies\Active\{b4d6b24c-c3ad-44e5-9dea-72c1ed9577b8}.cip") {