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