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