administrator

How can I debug a local IIS service with Visual Studio running as a non-Administrator user?

拈花ヽ惹草 提交于 2019-12-19 12:38:14
问题 I have installed Visual Studio 2008 and am running it as a non-Administrator user. I have a Web Application project I am developing and would like to debug it using Visual Studio. I can compile and also debug with "Visual Studio Development Server" without problems. But, when I select "Use Local IIS Web server" in my project properties and try to save the project, Visual Studio gives me the error: "To access local IIS Web sites, you must run Visual Studio in the context of an administrator

How do we create an installer than doesn't require administrator permissions?

烂漫一生 提交于 2019-12-19 06:46:24
问题 When creating a setup/MSI with Visual Studio is it possible to make a setup for a simple application that doesn't require administrator permissions to install? If its not possible under Windows XP is it possible under Vista? For example a simple image manipulation application that allows you to paste photos on top of backgrounds. I believe installing to the Program Files folder requires administrator permissions? Can we install in the \AppData folder instead? The objective is to create an

Psexec “run as (remote) admin”

試著忘記壹切 提交于 2019-12-18 12:18:12
问题 I wrote some c# code that uses PSexe. I want it to run a remote exe on a machine connected to my LAN. That exe creates a new local user. When I run that exe locally on the remote machine (after right click --> "run as Admin") - it works fine. I don;t know how to simulate the right click --> "run as Admin" from Psexec. I have tried the -l flag but it didn't work 回答1: Use psexec -s The s switch will cause it to run under system account which is the same as running an elevated admin prompt. just

Disable DeviceAdmin from shell?

房东的猫 提交于 2019-12-18 11:33:39
问题 I'm trying to uninstall an application from shell, however this application is running as a device administrator and thus shell> adb uninstall com.example.test did not work. How can I disable a device admin from shell? 回答1: Typically, administrative access is revoked via the Device Administrators screen, then the app is uninstalled. In the subsequent examples, I'll assume airdroid ( com.sand.airdroid ), has been configured as a device administrator, and is to be uninstalled. So to tailor this

Batch Script to Run as Administrator

谁说我不能喝 提交于 2019-12-17 22:34:33
问题 I'm writing a client/server checking program but it needs to run as Administrator. I want this to run silently on my network and users, and I don't want the "Run as" Administrator" prompt. Is there any beginning code that I can place into the batch file to make it auto-run as Administrator? 回答1: Solutions that did not work No: The - create a shortcut [ -> Compatibility -> "run this program as an administrator" ] solution does not work. This option is greyed out in Windows 7. Even with UAC

Visual Studio output file permissions?

情到浓时终转凉″ 提交于 2019-12-17 09:34:02
问题 I'am using Visual Studio 2010, how to set or automatically change owner of the output file from Visual Studio (such as executable file) to user other than administrator? all output files currently is owned by Administrator (due to Visual studio is launch by administrative privilege), so sometime I can't delete those files due to access permissions. sometime visual studio itself can't delete it too (after i ran the executable) until few minutes, its really annoying when I need to rebuild those

Visual Studio output file permissions?

只愿长相守 提交于 2019-12-17 09:33:32
问题 I'am using Visual Studio 2010, how to set or automatically change owner of the output file from Visual Studio (such as executable file) to user other than administrator? all output files currently is owned by Administrator (due to Visual studio is launch by administrative privilege), so sometime I can't delete those files due to access permissions. sometime visual studio itself can't delete it too (after i ran the executable) until few minutes, its really annoying when I need to rebuild those

What registry access can you get without Administrator privileges?

情到浓时终转凉″ 提交于 2019-12-17 08:45:09
问题 I know that we shouldn't being using the registry to store Application Data anymore, but in updating a Legacy application (and wanting to do the fewest changes), what Registry Hives are non-administrators allowed to use? Can I access all of HKEY_CURRENT_USER (the application currently access HKEY_LOCAL_MACHINE ) without Administrator privileges? 回答1: In general, a non-administrator user has this access to the registry: Read/Write to: HKEY_CURRENT_USER Read Only: HKEY_LOCAL_MACHINE HKEY

What precisely does 'Run as administrator' do? [closed]

戏子无情 提交于 2019-12-17 05:47:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . On Windows 7, I have a command-line program that fails due to file write permission errors, and popping up annoying UAC dialogs every time I run command-line programs that are from an 'unknown publisher'. However, if I start my console by right clicking and choosing 'run as administrator', then the install works

Detect if program is running with full administrator rights

不问归期 提交于 2019-12-17 05:07:22
问题 I need to determine if my program is running with full administrator rights. By that I mean if uac is turned on (for win vista/7) that I need to determine if the program actually has admin rights (like if the user right clicked and selected "run as administator") and not limited by uac. How do I do this in C++? 回答1: Win9x: Everyone is "admin" NT4: OpenThreadToken/OpenProcessToken + GetTokenInformation(...,TokenGroups,...) on DOMAIN_ALIAS_RID_ADMINS SID in a loop 2000+: OpenThreadToken