Update Script.ps1
parent
3953e627b9
commit
62515b9142
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue