administrator

Run WPF Application with administration elevation WIX

醉酒当歌 提交于 2019-12-11 01:54:17
问题 I have written a WPF application. When it is installed on client machines, they are prompted for a username and password so that they have administrator privileges to use the application. I need administrator privileges because my application opens ports and writes files to the file system. Is it possible to allow any user to run the application without being prompted for an administrator username and password and to elevate the application to run with administrator privleges? Thanks 回答1:

Batch File… running as administrator [closed]

五迷三道 提交于 2019-12-10 11:55:37
问题 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 7 years ago . I successfully created a batch file to flush my DNS… I have added a pause, I noticed in the title bar of the console window… It's not running as administrator. I've already tried a couple of variations of this… Just a little guidance would be most appreciated. I remember reading a blog somewhere, it said

Odd behavior when Git repo is in C:\Program Files

一世执手 提交于 2019-12-10 10:43:49
问题 We have a Git repo in C:\Program Files\Some-DB\Some-DB-Queries. When Git (or SourceTree) is run as Admin, everything works as expected. However, as non-Admin, after pulling into a local repo, Git sees those changes as uncommitted local changes. Does Git have to be run as Admin in Windows? If not, is there a way to configure security such that Git has the proper permissions for a repo living in Program Files? 来源: https://stackoverflow.com/questions/24493678/odd-behavior-when-git-repo-is-in-c

Check if logged on user is an administrator when non-elevated

让人想犯罪 __ 提交于 2019-12-10 10:15:15
问题 I needed to check whether the currently logged on user is an administrator however found that just using 'net localgroup administrators' was insufficient when it came to AD groups being a member of the administrators group. [Edit:] It is easy to confuse administrator privilege in general with elevated privileges of a specific instance and I just want to highlight that this question/answer does not deal with process elevation status checking. The requirement is to generally ascertain whether

Delphi Administrator rights D7 W7 [duplicate]

柔情痞子 提交于 2019-12-08 09:50:35
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Delphi: Prompt for UAC elevation when needed Delphi Administrator rights D7 W7 I'm using Delphi 7 on Windows 7. I need administrator privileges for some function in my application, which needs RAW access to the physical drive. How do I elevate to Administrator from source code? I.E. I chceck rights with: function IsUserAdmin : boolean; const CAdminSia : TSidIdentifierAuthority = (value: (0, 0, 0, 0, 0, 5)); var

windows core run command with elevated privileges

我的梦境 提交于 2019-12-08 07:52:56
问题 There are a few options for standard user to run as Administrator (or any another user), however, even when logged as Administrator, some functions requires to run 'elevated'. On a windows gui, just right click a .exe and select run as Administrator or even elevate 'cmd' or 'powershell'. How can you get elevated privileges on Windows core? 回答1: Generally, to programmatically invoke an executable with elevation (Run as Administrator) on Windows, use the Start-Process cmdlet with -Verb RunAs .

Windows: Running privileged command from non-privileged using CMD (or Java)

六月ゝ 毕业季﹏ 提交于 2019-12-07 17:14:11
问题 I will have a service that runs as administrator and listens on a port. My GUI program will talk to the administrator service for the items that require administrator privileges. If the service is not yet running, I will need to start it. How can I get my GUI program to run a command as administrator? I assume the user will be asked if they want to continue. I am hoping there is something I could type in a CMD window because that should fit very well into my Java program. I am thinking

asp.net run program with Administrator account

送分小仙女□ 提交于 2019-12-07 06:02:31
问题 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.exe"); System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(enginePath, ""); System.Diagnostics.Process p = System.Diagnostics.Process.Start

windows core run command with elevated privileges

淺唱寂寞╮ 提交于 2019-12-06 22:05:42
There are a few options for standard user to run as Administrator (or any another user), however, even when logged as Administrator, some functions requires to run 'elevated'. On a windows gui, just right click a .exe and select run as Administrator or even elevate 'cmd' or 'powershell'. How can you get elevated privileges on Windows core? Generally, to programmatically invoke an executable with elevation (Run as Administrator) on Windows, use the Start-Process cmdlet with -Verb RunAs . This applies equally to pwsh.exe , the PowerShell Core executable, so that in the simplest case you can

MSTest is removing Test Results when VS2013 is running as Administrator

谁都会走 提交于 2019-12-06 21:07:36
问题 I know that sounds strange but that is how it is) I'm using MSTest to run my unit tests. Using VS2013 + ReSharper 8.1 + some dll projects in C#. I'm calling some API functions, that is why I need VS to running as Administrator or those calls will fail. The problem is: For some reason folder TestResults is empty. While tests are running and not completed, I can see a new folder (User_Comp YYYY-mm-dd HH-MM-ss) created inside, with all test outputs, but once tests are completed this folder is