runas

runas /savecred… don't accept cmdkey /add (credentials)

馋奶兔 提交于 2019-12-05 02:27:12
问题 I have a problem with runas /savecred ... and cmdkey /add.... I have a batch file contains this line: runas /profile /savecred /user:MyDomain\MyUserName "MyProgram.exe" I'm logging to my computer as Administrator and I want to execute MyProgram.exe with another user: MyUserName. When I launch my batch file the firt time, it prompts for password for MyUserName, I type the password and it works nice !!! For second time, it don't ask for password because /savecred has saved MyUserName and

Visual Studio Run as administrator shortcut

折月煮酒 提交于 2019-12-04 16:30:31
问题 how do I create a shortcut that runs Visual Studio with Administrator rights? Actually I have to navigate to the Visual Studio start menu folder, click on the icon with the right mous button and choose "Run as Administrator". 回答1: Right-click on the shortcut, select Properties. On the Shortcut tab, click the Advanced button (bottom right). Check the Run As Administrator box. 回答2: What I was looking for was a way of running Visual Studio Solution files (.sln) as Administrator . I just found a

How do I make a console app always run as an administrator?

此生再无相见时 提交于 2019-12-04 08:31:30
问题 I have a console application that was developed to be called by a erp software. They call my app inside the erp and when they do it, i always get errors related to the insufficient permission to do it. I have checked the "run this program as an administrator" checkbox in the properties of the exe for all users but the result is the same. I have read something about adding a manifest that will make the app prompt for the uac dialog, but thats not what i want because the app will be called from

runas /savecred… don't accept cmdkey /add (credentials)

蹲街弑〆低调 提交于 2019-12-03 17:13:39
I have a problem with runas /savecred ... and cmdkey /add.... I have a batch file contains this line: runas /profile /savecred /user:MyDomain\MyUserName "MyProgram.exe" I'm logging to my computer as Administrator and I want to execute MyProgram.exe with another user: MyUserName. When I launch my batch file the firt time, it prompts for password for MyUserName, I type the password and it works nice !!! For second time, it don't ask for password because /savecred has saved MyUserName and password in Windows Credential. cool !! The information in Credential Manager Internet or network adress:

Visual Studio Run as administrator shortcut

邮差的信 提交于 2019-12-03 09:41:56
how do I create a shortcut that runs Visual Studio with Administrator rights? Actually I have to navigate to the Visual Studio start menu folder, click on the icon with the right mous button and choose "Run as Administrator". Right-click on the shortcut, select Properties. On the Shortcut tab, click the Advanced button (bottom right). Check the Run As Administrator box. What I was looking for was a way of running Visual Studio Solution files (.sln) as Administrator . I just found a pretty good way of doing this... Place this content inside a file named RunAsAdministrator.reg : Windows Registry

How do I make a console app always run as an administrator?

房东的猫 提交于 2019-12-02 23:39:18
I have a console application that was developed to be called by a erp software. They call my app inside the erp and when they do it, i always get errors related to the insufficient permission to do it. I have checked the "run this program as an administrator" checkbox in the properties of the exe for all users but the result is the same. I have read something about adding a manifest that will make the app prompt for the uac dialog, but thats not what i want because the app will be called from erp on the server and clients will not see the dialog on server. Can someone explain me how to make

Granting c++ program administrative rights through UAC at startup

余生颓废 提交于 2019-12-01 23:02:20
问题 So I've done some research, but I'm interested in understanding how one would make his program ask for administrative privileges from the UAC before its execution. Would this require one to use "runas" inside the ShellExecute()? I realize that this is something I will need to understand into my adventure of programming, as just about every program I have installed has asked me this. So for example, if I gave a program privileges at start up it would be able to execute any batch file or cmd

How to run executable from PHP website as a specific Windows user?

蹲街弑〆低调 提交于 2019-12-01 22:41:48
By default PHP runs under IUSR account. When executed directly: $lastline = exec('D:\\MyProgram.exe', $output, $return_var); It runs, but the program is unable to do it's tasks due to insufficient privileges. My question is: How do I run an executable under a specific Windows account from a PHP website? I've tried: When executed through Sysinternals PsExec : $lastline = exec('D:\\PsExec.exe -u UserName -p Password -accepteula "D:\\MyProgram.exe"', $output, $return_var); MyProgram.exe does not even execute at all. PHP throws empty output and return_var is -1073741502 . I assume this is some

Unable to launch Visual Studio 2015 as a different user

我的未来我决定 提交于 2019-12-01 03:29:09
In order to limit my own destructive powers, I have two domain accounts, one for normal work and one for TFS admin stuff. For years I have been using the Run as different user feature for opening another Visual Studio window as my admin account whenever I need to do admin stuff. Both users is members of the local administrator group. About a month ago this stopped working resulting in the below dialog instead of launching Visual Studio. Both option does nothing - no Visual Studio launches. The suggested link http://go.microsoft.com/fwlink/?LinkId=659046 , refer to older Visual Studio versions:

Unable to launch Visual Studio 2015 as a different user

风格不统一 提交于 2019-12-01 00:21:28
问题 In order to limit my own destructive powers, I have two domain accounts, one for normal work and one for TFS admin stuff. For years I have been using the Run as different user feature for opening another Visual Studio window as my admin account whenever I need to do admin stuff. Both users is members of the local administrator group. About a month ago this stopped working resulting in the below dialog instead of launching Visual Studio. Both option does nothing - no Visual Studio launches.