badcat1215
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
Windows 10 如何關閉 UAC === ###### tags: `Windows` https://community.microfocus.com/t5/ALM-QC-User-Discussions/lt-ALM-Support-Tip-gt-How-to-disable-UAC-from-windows-registry/td-p/951108 http://stenwang.blogspot.com/2015/11/uac-uac.html ## 甚麼是UAC? 這篇來教一下如何關閉UAC(User Account Control),也就是使用者帳戶控制。簡單白話先說明一下甚麼是UAC,就是當你要以高權限來啟用某些應用軟體或是檔案時,會跳出來詢問你是否確定要執行這個操作的那個很擾人視窗。你可能會很納悶,雖然你已經是用某個較高的權限帳戶登入操作了,為什麼執行這個軟體的時候還會跳出這種UAC詢問視窗? 其實這個功能是Microsoft 在 Windows Vista中所推出的安全技術之一,往後版本的作業系統繼續沿用這項功能。UAC的目的是在於因為由於管理員權限可以達到的事情很多,避免說有一些間諜工具、惡意軟體、後門程式、病毒木馬等等,想要利用管理員權限執行或修改某些程式與設定,偷偷地在背景執行壞壞的事情,這時候當惡意軟體想要用管理員權限執行某些檔案,就會跳出這個UAC視窗來提醒你,並且如果駭客用的時一些腳本執行的話,跳出這個UAC視窗,駭客就沒有辦法用滑鼠去點那個確認的按鈕~ 所以還是得先說這個UAC是有達到一定的安全性作用,若要關閉的話.還是先知道一下可能導致的風險比較好。不過就算UAC是開啟的,其實駭客還是有許多手段可以去繞過這個UAC機制(Bypass UAC)。 下圖這個就是UAC使用者帳戶控制示意圖 ![](https://i.imgur.com/cylCMKB.png) 接著就進入正文提一下關閉UAC的方法,這邊以Win10為例,介紹兩種方法~ 不過第一種方法其實不夠徹底,詳細差異可以詳閱下列內容。 ## 方法一:利用GUI圖形化介面關閉 在win10的左下角搜尋地方輸入UAC,點選「變更使用者帳戶控制設定」,點進去後可以看到有分為四個等級,拉到最下面就是關閉UAC了。同理,如果你希望安全性高一點,可以往上拉,預設會是在上面數下來第二個。 ![](https://i.imgur.com/rDI5q2E.png) ![](https://i.imgur.com/AWkWOgl.png) ## 方法一:利用GUI圖形化介面關閉 首先我們要先知道UAC的登錄檔路徑 ```bash= 電腦\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System ``` [使用者帳戶控制群組原則和登錄機碼設定](https://docs.microsoft.com/zh-tw/windows/security/identity-protection/user-account-control/user-account-control-group-policy-and-registry-key-settings) windows按鍵+R,輸入regedit,將上面那串路徑貼上到登錄編輯程式的路徑中,這個路徑下面有三個我們需要注意的名稱(KEY),分別是ConsentPromptBehaviorAdmin、EnableLUA、PromptOnSecureDesktop,如同下面圖片中紅色框框的地方,三個Key所代表的意義如下: Key-Value: ConsentPromptBehaviorAdmin:在管理員核准模式,系統管理員之提升權限提示的行為 EnableLUA:所有系統管理員均以管理員核准模式執行 PromptOnSecureDesktop:提示提升權限時切換到安全桌面 [ConsentPromptBehaviorAdmin官網說明(英文)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-gpsb/341747f5-6b5d-4d30-85fc-fa1cc04038d4) [EnableLUA官網說明(中文)](https://docs.microsoft.com/zh-tw/windows-hardware/customize/desktop/unattend/microsoft-windows-lua-settings-enablelua) [PromptOnSecureDesktop官網說明(英文)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-gpsb/9ad50fd3-4d8d-4870-9f5b-978ce292b9d8) ![](https://i.imgur.com/1ODBAJ4.png) ![](https://i.imgur.com/0fNPNs0.png) 那剛剛第一種方法提到的利用圖形化介面關閉UAC方法,其實所區分的四個等級,也都有相對應的Key-Value,你更改那邊的時候,這邊機碼的值也是會跟著改變的。所以我們當然也是可以到機碼這邊來去直接更改值,去關閉UAC,相對應的Key-Value如下所示: 1. UAC高 ConsentPromptBehaviorAdmin:2 EnableLUA:1 PromptOnSecureDesktop:1 2. UAC中 ConsentPromptBehaviorAdmin:5 EnableLUA:1 PromptOnSecureDesktop:1 3. UAC低 ConsentPromptBehaviorAdmin:5 EnableLUA:1 PromptOnSecureDesktop:0 4. UAC關閉 ConsentPromptBehaviorAdmin:0 EnableLUA:1 PromptOnSecureDesktop:0 那我們剛剛所提到的第一種跟第二種方法的主要差別,就在於UAC關閉的選項,這個稍微特別一點,因為如果從GUI去改,可能會看到這個EnableLUA仍然會是1,要徹底完全關閉的話可以手動去改登錄機碼,把EnableLUA的值改成0。 那我們也可以寫一個bat腳本來關閉UAC,以下為腳本的範例,記得執行的時候必須要右鍵以系統管理員身分執行才可,然後執行完需要重新開機才會生效。 範例一 DisableUAC.bat ```bash= reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t reg_dword /d 0 /F reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t reg_dword /d 0 /F reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t reg_dword /d 0 /F ``` 範例二 GetAdminDisableUAC.bat ```bash= ::::::::::::::::::::::Get Admin:::::::::::::::::: @echo off echo Get Administrator Rights cacls.exe "%SystemDrive%\System Volume Information" >nul 2>nul if %errorlevel%==0 goto Admin if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs" echo Set RequestUAC = CreateObject^("Shell.Application"^)>"%temp%\getadmin.vbs" echo RequestUAC.ShellExecute "%~s0","","","runas",1 >>"%temp%\getadmin.vbs" echo WScript.Quit >>"%temp%\getadmin.vbs" "%temp%\getadmin.vbs" /f if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs" exit :Admin echo Successfully Get Administrator Rights ::::::::::::::::::::::Adjust Registry, Disable UAC:::::::::::::::::: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t reg_dword /d 0 /F reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t reg_dword /d 0 /F reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t reg_dword /d 0 /F pause ``` ## UAC觸發條件 前面提到想要用管理員權限執行檔案會跳出UAC,這個說法其實是不夠精確的,不過這篇文章畢竟不是專業課程,我也不是Windows大神,下面列出參考維基百科的UAC觸發條件,供有興趣的人參考。 來源:[維基百科-使用者帳戶控制](https://zh.wikipedia.org/wiki/%E4%BD%BF%E7%94%A8%E8%80%85%E5%B8%B3%E6%88%B6%E6%8E%A7%E5%88%B6) UAC需要授權的動作包括: * 以管理員身分執行程式 * 組態Windows Update * 增加或刪除使用者帳戶 * 改變使用者的帳戶類型 * 組態來賓(Guest)帳戶(Windows 7和8.1) * 改變UAC設定 * 安裝ActiveX * 安裝或移除程式 * 安裝裝置驅動程式 * 設定家長監護 * 修改系統磁碟根目錄、Program Files(x86和x64)目錄或Windows目錄 * 檢視其他使用者資料夾 * 設定檔共享或流媒體 * 組態家長控制台 * 運行Microsoft Management Console控制台和以.msc為後綴名程式(部份.mmc程式除外) * 運行系統還原程式 * 運行磁盤碎片整理程式 * 運行註冊表編輯器或修改登錄檔 * 安裝或解除安裝顯示語言(Windows 7) * 運行Windows評估程式 * 組態Windows電源程式, * 組態Windows功能 * 運行日期和時間控制台 * 組態輕鬆存取 * 啟用、修改產品金鑰 基本上,只要有涉及到存取系統磁碟的根目錄(例如C:\),存取Windows目錄,Windows系統目錄,Program Files目錄,存取Windows安全資訊以及讀寫系統登錄資料庫(Registry)的程式存取動作,都會需要通過UAC的認證。

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully