Update Script.ps1
parent
62515b9142
commit
448e0b2322
|
@ -9,7 +9,7 @@ Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'
|
|||
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\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
|
||||
|
|
Loading…
Reference in New Issue