uac

Permissions issue when publishing to WMI under network service account

I'm adding WMI publishing to a .net framework 3.5 based windows service that is running under the 'network service' account. According to a document I came across on MSDN, the 'network service' account should by default have WMI publishing permissions. ("By default, the following users and groups are allowed to publish data and events: ...

Help with understanding why UAC dialog pops up on Win7 for our application

We have a C++ unmanaged application that appears to cause a UAC prompt. It seems to happen on Win7 and NOT on Vista Unfortunately the UAC dlg is system modal so I can't attach a debugger to check in the code where it is, and running under msdev (we're using 2008) runs in elevated mode. We put a message box at the start of our progr...

Is UAC on Win7 different than Vista?

[EDITED to avoid duplications] I posted this question and in trying to diagnose what is going on have become curious about the magic UAC that happens in the OS. (especially since it seems different on the two platforms. Can anyone confirm or refute this? Our unmanaged c++ program causes the "Do you want to allow the following program...

Exe name like update.exe blocked by UAC in scheduled task

Hi folks I have a problem with windows UAC, scheduled tasks and a executable named "dbupdate.exe". I have full power over source code, manifests and so on, but not over user systems (short: normal software engineer ;-). Language is Delphi, but shouldn't be important I think. I have a problem using an application in task scheduler in wi...

Executing a process normally from an elevated one

Is there some way to launch a process in non-elevated way from an elevated one. My setup is launched elevated and when it finalizes, it will just launch the main application. Because the setup is elevated, the main process will be elevated as well which is not desirable. What is the best solution to this? ...

Windows 7 folder sharing API

I wonder if it's possible to programmaticaly share folders in Windows 7 while running in restricted logon session: 1) NetShareAdd returns ERROR_ACCESS_DENIED. 2) Command line net share says the same. 3) But explorer has no problems creating new shares without invoking UAC. How does it do that? Any help will be greatly appreciated. ...

How to disable error message in file dialog?

Suppose I have a Win32 C++ application that displays a save file dialog. Also suppose that I browse to C:\Windows (or some other protected location) and type a file name. Then suppose I hit save. What happens is I get a message saying I don't have permission to save there and would I like to save to My Documents instead. So here is the ...

How to disable error message in file dialog?

Suppose I have a Win32 C++ application that displays a save file dialog. Also suppose that I browse to C:\Windows (or some other protected location) and type a file name. Then suppose I hit save. What happens is I get a message saying I don't have permission to save there and would I like to save to My Documents instead. So here is the ...

Install program that has to be run as administrator

Hello! Background: I am by no means a windows security / user permissions expert. I have an application (written in C#), that has to be able to write / delete files & folders in its root directory, write / delete files elsewhere on the disk, write/modify values in System Registry (Local Machine) and start & stop other applications and s...

In Windows 7, "Run as Administrator" does not run as Administrator when UAC is turned off

When I run my c# Windows Forms Application on Windows 7 with: A user in the "Users" group that is not in the Administrators group On a machine where User Account Control is turned off By right-clicking the EXE and selecting "Run as Administrator" This code: WindowsPrincipal pricipal = new WindowsPrincipal(WindowsIdentity.GetC...

Run Command as administrator in PowerShell script. UAC

OK here is my issue: I am trying to run a script remotely on a server. I am an administrator on both boxes, firewall exceptions are in place, remote admin is enabled, and everything else looks good that i can see. invoke-command -ComputerName $ComputerName -ScriptBlock ` { cd C:\Windows\System32\inetsrv\; ./appcmd.exe ADD ...

How to make your MFC application bypass UAC in windows7 and Vista

I have an MFC application developed in VS Studio 2008 which reads and writes to a JSON file in its installation folder. It works perfectly in vista(administrator) BUT ONLY when UAC is turned off. When UAC is ON, the application isn't able to write to its JSON file. I figured I had to create a manifest file but I haven't really tried crea...

Create a File or Directory as User in the CommonAppData Location with .NET

I need to create a file/directory in the common application data folder that will be shared across all accounts. If I create the file/directory as admin, I have no problem but if I create the file/directory as a user the file/directory goes into the virtualized folder for the user's account. Has anyone found a good way to do this? ...

How to sign an installer to prevent Vista's UAC warning.

I have an app that I need to distribute and want to sign it so I can avoid the UAC warnings in vista. Currently I see this... I am using visual studio to create the installer but the app was not written in .net. Do I need to sign both the .msi and the .exe contained in the .msi? What kind of key do I need and where should I get it?...

UAC, Vista and C# - Programatically requesting elevation

I have a program that only requires elevation to Admin on very rare occasions so I do not want to set-up my manifest to require permanent elevation. How can I Programatically request elevation only when I need it? I am using C# Thanks ...

Wix, Launch application after installation complete, with UAC turned on.

Good day. I've been building an installer for our product using the WIX(Windows Installer XML) technology. The expected behavior is that the product is launched, if the check box is checked after installation. This has been working for some time now, but we found out recently that UAC of Win 7, and Vista is stopping the application fro...

Clean Windows UAC Registration of App

I created an application that had a signed assembly manifest to run as administrator, but I need the application to be moved back down to a user application. However, even after removing the assembly manifest Windows 7 still sees the app as an elevated app. It appears to be tied to the name, because if I change the name the app then no...

vb6 and vb .net interop on vista 64 versus windows 7.

I have written a .net dll that I can successfully call from vb6. Deployment to xp, vista 32, and vista 64 boxes have been working. It is not working on windows 7 64 bit. I cannot run regasm.exe /codebase name.dll on the end users machine because they are not admins. Any ideas on helping me with deployment would be greatly appreciated...

Program needing elevation in Startup registry key (windows 7)

Hi all, I have a program that I'd to run when the computer starts. I've put its path inside "SOFTWARE\Microsoft\Windows\CurrentVersion\Run". This is in Windows 7. When the computer starts nothing happens. I'm thinking this is because the program needs elevation when I run it. But Windows does not ask for permission to elevate and gives ...

Open default browser as standard user (C++)

I'm currently using ShellExecute "open" to open a URL in the user's browser, but running into a bit of trouble in Win7 and Vista because the program runs elevated as a service. When ShellExecute opens the browser, it seems to read the "Local Admin" profile instead of the user's. So for example, if the user at the keyboard has Firefox a...