administrator

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

Hi, 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 maniputlation application that allows you to paste photos on top of backgrounds....

Does full trust mean the same as Run As Administrator

Does full trust mean the same as Run As Administrator? I have read things stating that "for this to work, the application must be a full-trust application." Is that the same as you must have administrator privileges to run the application? If not, what's the difference? How can you tell if an app is "full-trust"? I am told that "Adm...

Remove manifest permissions in Vista

Hi all, I have been developing a C# windows form application in XP. It all works just fine. But in Vista it was not able to write the log or scoreboard file to the hard drive. I found out that I needed a manifest file to allow the popup to ask it to be run as admin. This all worked well and I am very pleased. My problem is I do not...

DirectoryEntry.NativeObject throws access denied for a user in Administrators group in windows 2008

I have a local user, which is member of Administrators local group. When I run this code: using System; using System.DirectoryServices; namespace nanttest { class Program { public static void Main(string[] args) { using(DirectoryEntry entry = new DirectoryEntry("IIS://localhost/W3SVC")) { object ab...

programatically run cmd.exe as adminstrator in vista, c#

I have a visual studio setup and deployment project. I've added a .cmd script in it. The script would need administrator privilages to run. When user clicks on the setup.exe, UAC prompts the user for Admin permissions. So i assumed that all processes created and called within setup.exe will run in admin capacity. So i made the setup call...

SysTray Icon not visible after restart for a program running as administrator.

I have a simplest form of an application, in which I am showing a SysTray Icon and adding the application in Startup items. Application is developed in C#. I want tray icon to be shown even after restart of the machine. Currently, I am facing a strange behavior while running the exe using "Run as Administrator". When I use under administ...

VSeWSS Administrator Privileges and <SafeControl> entry

I am trying to deploy my first custom aspx page in sharepoint: Windows Server 2003 Microsoft Visual Studio 2008 VSeWSS 1.3 Latest Sharepoint Patches as of May 28, 2009 I am following this detailed howto: http://geeksconnected.com/jamil/Lists/Posts/Post.aspx?ID=19 Unfortunately, it quickly becomes incomplete toward the bottom. I am...

centralized data authorization - who is administrator?

Lets say I have centralized database and can't trust administrators (like in Azure or other cloud service). Lets say I solved the problem of authentication and I can trust user identity. Lets say I use certificates to authenticate and encrypt data (private key never leaves the client machine). How can I design the application/database t...

Allowing administrators to modify user's settings from within my program -- what's my best option?

I've been working on making my app easier to use for administrators. One of the things I'd really like to do is allow admins to modify other user's settings from within the program -- while still making it possible for regular ol' users to modify their own settings, as my application isn't necessarily only for administrators who want to ...

Reset password for renamed Administrator account

I need to create a .VBS script to reset the Windows local administrator password on a large group of computers. My problem is that some of our sites have renamed the administrator account for security reasons. Does anyone have a script which changes the password of the administrator account based on the SID of the original Administrato...

Simple check in java to find out if running as administrator

Is there a simple, quick, non-invasive windows admin task that can be performed from a java process to validate if the current process is running as administrator? I know we could run batch commands to check if current user is member of administrator group. But there are complications of portability across Vista etc. A simple example w...

asp.net run program with Administrator account

Hello, I need to run one console application from ASP.NET application using Administrator account and with Desktop interaction enabled. I have tried code below, console app runs ok but within NETWORK SERVICE account. Any ideas how to run console under Administrator account? string enginePath = Server.MapPath(@"~/engine/MyConsole.ex...

UAC on Win2k8/VIsta x64 - local "Administrator" works but domain account in Administrators group fails?

I have come across a strange problem in one of our applications on win2k8/Vista x64 with UAC enabled. It is a process which hosts the UI for our service and runs in the context of the logged on user. When logged in as a domain user who is a member of the "Administrators" group, writing to the registry under HKLM fails due to UAC with ac...

C# admin rights for a single methods

Hi everybody, Is it possible to require administrator rights for one single method? Something like this: [RequireAdminRightsForThisMethod()] private void TheMethod(){ // Do something } ...

Adding "Network Service" Account to Administrators Group

My web-app runs in IIS 6.0 under windows server 2003, and we all know that in this situation, user account "Network Service" is used by IIS. I happen to have to allow certain user to perform some action on my web page, and that action requires administrator privilege. The laziest solution to me seems to add "Network Service" to Adminis...

Can ASP.NET be configured to run as an administrator when UAC is enabled?

I can't seem to find any information that indicates whether ASP.NET can be configured (through web.config or maybe machine.config) to run as a real administrator on a machine with UAC enabled. By this I mean, even if you set it to impersonate an Administrator account, UAC will disable that account's ability to act as an Administrator by...

How programmable detect if a user has admin rights (can run installer)

Hi in my code I need to detect if current user has rights to install other application (other application VC2005 redist. package)... and it should work on Vista. As I understand CheckTokenMembership or IsAdministrator do not give a complete solution. Thank you ...

Determine if current user is in Administrators group (Windows/Python)

I want certain functions in my application to only be accessible if the current user is an administrator. How can I determine if the current user is in the local Administrators group using Python on Windows? ...

How to run an executable as a system service?

I've got a file and data distribution application written in .NET 2.0 I've written similar to Steam. This application will need to run in Windows 7 and will need to be able to run and install applications that require administrator rights. However the users will not have admin rights. My thought was to run the application as a Local Sy...

Administrator's shortcut to batch file with double quoted parameters

Take an excruciatingly simple batch file: echo hi pause Save that as test.bat. Now, make a shortcut to test.bat. The shortcut runs the batch file, which prints "hi" and then waits for a keypress as expected. Now, add some argument to the target of the shortcut. Now you have a shortcut to: %path%\test.bat some args The shortcut ...