From 62515b9142f4e4e14f3881e0987b4fe696dc5633 Mon Sep 17 00:00:00 2001 From: Chris Nutter Date: Mon, 4 Sep 2023 10:00:12 -0700 Subject: [PATCH] Update Script.ps1 --- Script.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Script.ps1 b/Script.ps1 index 4797b52..eb89ab5 100644 --- a/Script.ps1 +++ b/Script.ps1 @@ -10,6 +10,7 @@ Enable-NetFirewallRule -DisplayGroup "Remote Desktop" # Enable c$ reg add HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters /f /v AutoShareWks /t REG_DWORD /d 0 +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "LocalAccountTokenFilterPolicy" /t REG_DWORD /d 1 /f # Disable UAC prompt Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\system' -Name "ConsentPromptBehaviorAdmin" -Value 0