admin-rights

Running Visual Studio without admin rights

限于喜欢 提交于 2019-12-01 04:44:07
We work on XP Pro workstations and use Visual Studio 2008 & 2010 to develop winforms, web and web services against local IIS and SQL Express instances. We currently have local admin rights on our main machine account. The proposal is to move to a low rights account for our amin login but to have another local account with local admin rights that we then use to elevate where needed. Are there any issues developing and debugging under this setup that would affect developer productivity? From experience you can't install things like NUnit in your reduced priviledge account - that shouldn't be a

Get rid of “You don't have permission to run the emulator” in VS2012/WP8 SDK

夙愿已清 提交于 2019-11-28 10:12:10
问题 I'm starting to write WinPhone apps in my VS 2012 Pro with Windows Phone 8 SDK installed properly. When I hit F5 to launch a project in the phone emulator, VS tries to launch the WP emulator, but I get the message "You don't have permission to run the emulator" from "Windows Phone Emulator". The message box also contains the checkbox "Join the Hyper-V Administrators security group" which is checked by default. If I press the Retry button, the UAC warning appears as expected, and the WinPhone

Run elevated process

本小妞迷上赌 提交于 2019-11-26 14:43:50
I am trying to run a cmd command with the following code: ProcessStartInfo cmd = new ProcessStartInfo("cmd.exe"); cmd.RedirectStandardInput = true; cmd.RedirectStandardOutput = true; cmd.RedirectStandardError = true; cmd.UseShellExecute = false; cmd.CreateNoWindow = true; cmd.WindowStyle = ProcessWindowStyle.Hidden; Process exec = Process.Start(cmd); exec.StandardInput.WriteLine("sc create \"BaliService\" binPath= \"{0}\\BaliService.exe\"", Directory.GetCurrentDirectory()); This command requires admin privelages, if I run cmd as administrator and type the command it works perfectly but not

Run elevated process

一笑奈何 提交于 2019-11-26 03:59:50
问题 I am trying to run a cmd command with the following code: ProcessStartInfo cmd = new ProcessStartInfo(\"cmd.exe\"); cmd.RedirectStandardInput = true; cmd.RedirectStandardOutput = true; cmd.RedirectStandardError = true; cmd.UseShellExecute = false; cmd.CreateNoWindow = true; cmd.WindowStyle = ProcessWindowStyle.Hidden; Process exec = Process.Start(cmd); exec.StandardInput.WriteLine(\"sc create \\\"BaliService\\\" binPath= \\\"{0}\\\\BaliService.exe\\\"\", Directory.GetCurrentDirectory()); This