When i open visual studio 2010 it is automatically running with administrator.
Let me know how can i open visual studio without administrator rights.
Any ideas on how to fix this?
This solution should only be used if Flabetvibes solution does not work.
Navigate to the Visual Studio install folder (commonly C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\)
Right-click devenv.exe > Properties
Go to the Security tab and click Advanced button.
Click on Change right beside the owner (the current owner may be "Administrators").
Enter your Windows user name into the text area and click Check Names.
If found, click OK and Apply etc.
Visual Studio should now start in normal mode (without "Administrator").
This has to be repeated every time a new update is installed.
I supposed you are running Visual Studio 2010 under a Windows system, then the solution might be:
Right click on the Visual Studio icon
Choose Properties
Select the Compatibility tab
Unchecked Run this program as an administrator inside the Privilege Level group box
Hope this idea is useful.
Related
I am getting this error while trying to update Visual Studio:
From the start menu, type "Visual Studio" and right click its icon.
Click run as administrator and then proceed to run update.
This should resolve the problem.
There are many posts that tell you how to run Visual Studio 2010 as Administrator.
I will probably be very ashamed when I find my answer but...
My problem is that I can't start Visual Studio NOT elevated!
I always have the "(Administrator)" text on the title.
I want to be able to debug my application in a non-elevated environment.
I have no shortcut/application file that is marked with "Run As Administrator".
Not Devenv.exe and not VSLauncher.exe not shortcuts at Start Menu.. nothing is marked like this and still Visual Studio runs as Administrator.
My user belongs to the local Administrators group.. but that didn't use to enable this administrator mode.
UAC is disabled but this too didn't matter once.
Also checked
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
and removed Visual Studio from the list. Nothing.
Any idea will be appreciated.
I turned UAC back on and what a surprise... Visual Studio runs in normal mode again!
Thanks again Microsoft, for making things very clear...
You can try downloading VSCommands extension and using its Debug As Normal user feature.
I had EntitySpaces Add-in for Visual Studio (all versions) installed. Upon uninstalling it, when you start up any version of Visual Studio, you get the message "could not rename add-in file". How do you get rid of this or stop Visual Studio from trying to load the Add-In?
It appears this can be a common problem when applications that install Add-Ins or just Add-Ins on their own, don't uninstall properly or just plain break.
For Visual Studio 2015 you have to:
Click on Tool -> Extensions and Updates.
Be sure that Installed option is selected in left part of the window.
Find your addin, select it and click on Uninstall button.
Restart Visual Studio.
There are a few helpful articles which may be useful for your particular Add-In:
http://www.mztools.com/articles/2006/mz2006018.aspx
First of all I tried this (which may work for you) How to: Deactivate and Remove an Add-In.
Note if you don't know the Namespace or ClassName of the addin, you can find it in the .addin file under FullClassName:
To remove an add-in from the integrated development environment (IDE)
Delete the .addin XML registration file for the add-in that you want
to remove. The default location is ..\Users\username\ Documents\Visual
Studio 2010\Addins\
At a Visual Studio command prompt, type devenv
/resetaddin Namespace.ClassName, where Namespace is the name of your
add-in project and Classname is its class name, for example, devenv
/resetaddin MyAddin1.Connect
For me this, although not my exact problem, lead to my resolution, which was simply to run Visual Studio as administrator. Doing this for just one version of Visual Studio solved my problem in that the error message no longer appeared (probably because it was then able to successfully rename as per the original error message).
In Visual Studio 2019, Click on Extensions tab. Then click on Manage Extensions. In the window that opens,select Installed in the left pane. After that search for the Add-in you want to remove. In the results displayed, select the Add-in the hit UNINSTALL. Restart Visual Studio for the process to be completed. The process seems to work for any Add-in.
how do I create a shortcut that runs Visual Studio with Administrator rights?
Actually I have to navigate to the Visual Studio start menu folder, click on the icon with the right mous button and choose "Run as Administrator".
Right-click on the shortcut, select Properties. On the Shortcut tab, click the Advanced button (bottom right). Check the Run As Administrator box.
I know the OP was about how to create a shortcut that runs VS as admin, but using the steps below you can just always have VS launch as admin.
This is a copy of my answer to a similar post on SuperUser:
Option 1 - Set VSLauncher.exe and DevEnv.exe to always run as admin
To have Visual Studio always run as admin when opening any .sln file:
Navigate to C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe.
Right-click on VSLauncher.exe and choose Troubleshoot compatibility.
Choose Troubleshoot program.
Check off The program requires additional permissions and hit Next.
Click the Test the program... button to launch VS.
Click Next, then hit Yes, save these settings for this program, and then the close buton.
To have Visual Studio always run as an admin when just opening visual studio directly, do the same thing to the DevEnv.exe file(s). These file are located at:
Visual Studio 2010
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Visual Studio 2012
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Visual Studio 2013
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Visual Studio 2015
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Option 2 - Use VSCommands extension for Visual Studio
Install the free VSCommands extension for Visual Studio (it's in the Visual Studio Extensions Gallery) and then configure it to always have Visual Studio start with admin privileges by going to Tools -> VSCommands -> Options -> IDE Enhancements -> General and check off Always start Visual Studio with elevated permissions and click the Save button.
Note: VSCommands is not currently available for VS 2015, but their site says they are working on updating it to support VS 2015.
My Opinion
I prefer Option 2 because:
it also allows you to easily turn off this functionality.
VSCommands comes with lots of other great features so I always have it installed anyways.
it's just easier to do than option 1.
What I was looking for was a way of running Visual Studio Solution files (.sln) as Administrator. I just found a pretty good way of doing this...
Place this content inside a file named RunAsAdministrator.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\runas\Command]
#="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe\" \"%1\""
Double click the file to execute it.
Now, when you right click a file you'll have the option of running it as Adminstrator like this:
Here's the full story by the AWESOME David Ebbo: Open your solution files as admin
Create a shortcut to Visual Studio on your desktop
Right-click on the program
"Send to"
"Desktop (create shortcut)"
Open up properties
Right-click on the shortcut
"Properties"
Within the "Shortcut" tab, click on "Advanced..." (somewhat towards bottom right)
Select "Run as administrator" in the new window
Apply and OK all the windows.
Now when you use this shortcut, it should run the program as administrator.
The above answers works, but on Windows 10 you might bump with disabled advanced shortcut screen. So for windows 10 do the following:
Create shortcut to the solution file
Right click the shortcut => properties
Choose Shortcut tab
Under Target add the visual studio executable location before the sln path. For example:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" C:\mypath\example\example.sln
Press Advanced under the shortcut tab - you'll be able to edit the advances window.
Select "Run as administrator"
Press ok
Double click the shortcut - you should be able to run the solution as administrator now.
Ctrl + Shift + Clicking on Visual Studio 2019 shortcut seems to open Visual Studio Professional 2019 in admin mode.
I am having an unusual problem. I have always been able to drag files and folder from my desktop or explorer to the solution explorer in visual studio and add the files to my project. No when I attempt to drag files I simply get the "stop" symbol.
I am using Visual Studio 2008 running on Vista Home Premium 64 bit.
Any ideas?
Windows will not let you drag from one window to another if only one of those windows is running as Administrator.
Are you running Visual Studio as Administrator?
In short : Run Visual Studio as Non Administrator.
You can't do this when your project is running. Is it?
I also cannot drop files from the explorer onto Visual Studio when it is running in admin mode.
But please try opening 'Add / Existing Item ... ' from the Solution Explorer / Manager context menu in Visual Studio and drag and drop files and folders from that window.
Works on my machine with Visual Studio 2012 ...
I had the same issue and noticed I was pulling files from a folder that was compressed. I unzipped all the files and was able to drag and drop into the solutions explorer fine. Make sure your files are not in view mode in a compressed folder.