Syntax Fix
This commit is contained in:
@@ -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..."
|
||||
|
||||
@@ -14,7 +14,7 @@ function DisableRDP {
|
||||
|
||||
function SetupRDP {
|
||||
param (
|
||||
[bool] enable
|
||||
[bool] $enable
|
||||
)
|
||||
if ($enable) {
|
||||
EnableRDP
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user