uac

Disabling UAC with Powershell

南笙酒味 提交于 2019-12-11 01:48:12
问题 I'm trying to disable UAC (i.e. set to the minimum level) using Powershell. So I'm running: Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 0 I've also tried this with -Force added on the end. This code has the intended effect of setting UAC to minimum but also the undesired effect of preventing built-in Windows applications (including Edge) from running, returning an error that the application can't be run

How to get (programatically) the location of a Windows UAC virtualized file?

喜你入骨 提交于 2019-12-11 01:39:13
问题 I have a 32-bit windows old application (with the C/Win32 source) that creates its data file in the same folder where the executable is. Because the application has no installation program and the user can place the executable wherever he/she wants, the application has a dialog to inform the user where its data is located. But under Microsoft Vista/Seven if the user puts the application in the Program Files or any other system-protected folder the data file gets virtualized and moved to a

Access to HKLM registry branch on Win 7 from within application

大城市里の小女人 提交于 2019-12-11 00:55:25
问题 Is it possible to write to the HKLM registry branch in Win 7 from an application? My existing code is not able to write to the HKLM registry branch on Win 7 machines, while it is able to do this on XP machines. How do you allow an application read/write access to HKLM on Win 7, or should all applications now just use HKCU instead? What if I need to store settings on a machine basis rather than a user basis? 回答1: You need to decide whether you are writing an administrative app, that

Self-Updating .NET client application which needs to write in the Program File folder

会有一股神秘感。 提交于 2019-12-11 00:35:19
问题 Similar to: Request Windows Vista UAC elevation if path is protected? I have a .NET Client Application installed in c:\Program Files (Windows Vista). This application should update itself, but it doesn't because of permission issues. The auto-updater should simply replace a couple of assemblies, but they are all located under c:\Program File and the application throws the following exception: System.UnauthorizedAccessException: Access to the path 'C:\Program Files...' is denied. I have no

From command line on win7, how do I launch a process as administrator with elevated UAC

寵の児 提交于 2019-12-11 00:05:49
问题 I have a program which requires Administrative privileges that I want to run from a batch file. What command can I run from command line will run my program with administrative privileges? I'm okay with the pop-up window asking for permission. Additionally, the file needs to be able to run from anywhere on a computer so additional files are run from ./src. The problem is that if I right-click and choose "run as administrator" it changes my current directory so ./src no longer works. If I

Is it possible to run as administrator only through code

此生再无相见时 提交于 2019-12-10 23:18:54
问题 OS: Windows Language: C I have a requirement such as , I should not change the exe's manifest or the exe file's properties to run it as administrator. Is there any chance in doing my requirement with createprocess/createprocessasuser api. This can be done through shellexecute api, However I need to create my process in suspended state. this can only be done by createprocess or createprocessasuser api. It would be grateful,If some one can guide me in running a program as administrator through

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

假装没事ソ 提交于 2019-12-10 19:47:35
问题 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 creating one. Questions: reference: http://msdn.microsoft.com/en-us/library/bb384691.aspx. It says here that you can simply set the linker options in the Visual

How do I run my C# service with elevated UAC privileges on Windows 2012r2?

ε祈祈猫儿з 提交于 2019-12-10 17:31:27
问题 I have a service which requires elevated administrative permissions. The service runs fine on Windows XP and Windows 2008r2 but when I run the code which checks to see whether the application is executing under an elevated administrative context on Windows 2012r2 - the result is always false. I have already tried adding <requestedExecutionLevel level="requireAdministrator" uiAccess="true" /> to the application manifest and this works fine when I run the same code as a console application -

What is causing desktop shield icon overlay on *SOME* desktops

只谈情不闲聊 提交于 2019-12-10 15:54:48
问题 I have a C++ Builder/Delphi application. It has the following manifest embedded as a resource: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity type="win32" processorArchitecture="*" version="1.0.0.0" name="Manufacturer.Division.MyName" /> <description>MyName</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0"

List of UAC prompt triggers?

为君一笑 提交于 2019-12-10 15:50:56
问题 I just ran an old program I had written years ago, several years before Vista was released. Windows (7) gave me the UAC prompt and asked for permission to run it. I was surprised because it is a relatively simple program which does nothing too fancy and certainly nothing that should require elevated privileges. I then checked the directory and sure enough, Windows is overlaying the shield icon on the program. I did a quick scan of the code and do not see anything that would obviously trigger