Syntax Fix

This commit is contained in:
2024-01-29 10:43:34 +01:00
parent faf58b644f
commit 8c3d6c906c
3 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ function InstallOffice {
Write-Host "Office setup files not found." Write-Host "Office setup files not found."
} }
} }
else if ($mode -eq "online") { elseif ($mode -eq "online") {
DownloadFiles -Type "Office-online" DownloadFiles -Type "Office-online"
$setupPath = Join-Path $tmpPath "OfficeSetup.exe" $setupPath = Join-Path $tmpPath "OfficeSetup.exe"
Write-Host "Starting Microsoft Office Installation..." Write-Host "Starting Microsoft Office Installation..."

View File

@@ -14,7 +14,7 @@ function DisableRDP {
function SetupRDP { function SetupRDP {
param ( param (
[bool] enable [bool] $enable
) )
if ($enable) { if ($enable) {
EnableRDP EnableRDP

View File

@@ -39,7 +39,7 @@ function Show-WDACMenu {
function SetupWDAC { function SetupWDAC {
param ( param (
[bool] enable [bool] $enable
) )
if ($enable) { if ($enable) {
if (Test-Path -Path "C:\Windows\System32\CodeIntegrity\CiPolicies\Active\{b4d6b24c-c3ad-44e5-9dea-72c1ed9577b8}.cip") { if (Test-Path -Path "C:\Windows\System32\CodeIntegrity\CiPolicies\Active\{b4d6b24c-c3ad-44e5-9dea-72c1ed9577b8}.cip") {