netsh advfirewall set Domainprofile state off //关闭域防火墙
netsh advfirewall set Privateprofile state off
netsh advfirewall set Publicprofile state off
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
-
Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
-
Value: "EnableLUA"
-
Type: REG_DWORD
-
Data: This MUST be a value in the following table.
Value
Meaning
0x00000000
Disabling this policy disables the "administrator in Admin Approval Mode" user type.
0x00000001
This policy enables the "administrator in Admin Approval Mode" user type while also enabling all other User Account Control (UAC) policies.
参考链接: