Update Script.ps1

master
Chris Nutter 2023-09-04 10:00:12 -07:00
parent 3953e627b9
commit 62515b9142
1 changed files with 1 additions and 0 deletions

View File

@ -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