默認情況下,如何以管理員身份運行Visual Studio?

本文翻譯自:How do I run Visual Studio as an administrator by default?

I recently discovered that even while logged into my personal laptop as an administrator, Visual Studio does not run in administrator mode and you need to explicitly use Run As Administrator . 我最近發現,即使以管理員身份登錄我的個人筆記本電腦,Visual Studio也不會以管理員模式運行,您需要明確使用以管理員身份運行”

Is there a way to make it run as an administrator by default, other than creating a shortcut, etc.? 除了創建快捷方式等之外,有沒有辦法讓它作爲管理員默認運行?


#1樓

參考:https://stackoom.com/question/eVf7/默認情況下-如何以管理員身份運行Visual-Studio


#2樓

Applying this change will make it so that when you double click on a .sln file Visual Studio will not open. 應用此更改將使您在雙擊.sln文件時無法打開Visual Studio。 Also, you will not be able to drag and drop files into Visual Studio. 此外,您將無法將文件拖放到Visual Studio中。

Follow the numbered instructions for each file in the bullited list. 按照受控列表中每個文件的編號說明進行操作。 The paths are for a standard 64-bit install so you may have to adjust them for your system. 這些路徑用於標準的64位安裝,因此您可能需要爲系統調整它們。

  • C:\\Program Files (x86)\\Common Files\\microsoft shared\\MSEnv\\VSLauncher.exe
  • C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.exe
  • C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\devenv.exe
  • C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\devenv.exe

    1. Right click on the file and select Properties 右鍵單擊該文件,然後選擇“ Properties
    2. Select the Compatibility tab 選擇Compatibility選項卡
    3. Optional: Select Change settings for all users 可選:選擇Change settings for all users
    4. Select Run this program as an administrator 選擇Run this program as an administrator
    5. Select Ok and close the dialog 選擇確定並關閉對話框

#3樓

@Kumar @Kumar

"W7 prompts everytime to run this program "devenv.exe" , anyway to get rid of that ?" “W7每次都提示運行這個程序”devenv.exe“,無論如何要擺脫它?”

Yes. 是。 You can prevent Windows from prompting you by going to Control Panel/User Accounts/Change User Account Control settings and move the slider down. 您可以通過轉到“控制面板/用戶帳戶”/“更改用戶帳戶控制”設置並向下移動滑塊來阻止Windows提示您。


#4樓

右鍵單擊圖標 - >屬性 - >高級 - >檢查複選框以管理員身份運行,每次在管理模式下打開(Win​​dows 8相同)


#5樓

windows 8 窗戶8

there is no advanced tab anymore. 沒有高級標籤了。 So, to do it automatically, you need to follow the next steps : 因此,要自動執行此操作,您需要執行以下步驟:

-right click on the shortcut - 右鍵單擊​​快捷方式
-click on properties - 點擊屬性
-under the "Shortcut" tab, click on "Open File Location" - 在“快捷方式”標籤下,點擊“打開文件位置”
-then, right click on devenv.exe 然後,右鍵單擊devenv.exe
-Troubleshoot compatibility -解決兼容性
-Troubleshoot program - 攻擊程序
-Check "The program requires additional permissions" - 檢查“該程序需要額外的權限”
-Then next, next next,... - 接下來,接下來,......


#6樓

For Windows 8 對於Windows 8

  1. right click on the shortcut 右鍵單擊快捷方式
  2. click on properties 點擊屬性
  3. click on the "Shortcut" tab 單擊“快捷方式”選項卡
  4. click on Advanced 單擊“高級”

You will find Run As administrator (Checkbox) 你會發現運行方式管理員(複選框)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章