Home > Batch File > Batch File To Run Program As Different User With Password

Batch File To Run Program As Different User With Password

Contents

Or maybe it's "just a Vista thing!" Maybe this feature changed between XP and Vista? 0 Habanero OP Matt_P Jun 3, 2013 at 9:09 UTC Troy Thompson wrote: Copyright © 2006-2017 How-To Geek, LLC All Rights Reserved

Jump to content AutoIt General Help and Support Existing user? I wonder if a group policy buried somewhere is preventing this? What I'll do is try it on a Win XP 32bit machine tomorrow and see if that works. http://techvividglobalservices.com/batch-file/batch-file-check-if-program-is-running.html

The one time i used it, I generated the new exe i needed, and kept autoit around, but never used it.And it's just another solution. I need to run Active Directory like below: runas /user:domain\username "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\AD.msc" I'm logged into the machine with a user from a domain, but I need to open AD with another Sign In Now Sign in to follow this Followers 0 Go To Topic Listing AutoIt General Help and Support All Activity Home AutoIt v3 AutoIt Help and Support AutoIt General Help Add Cancel × Insert code Language Apache AppleScript Awk BASH Batchfile C C++ C# CSS ERB HTML Java JavaScript Lua ObjectiveC PHP Perl Text Powershell Python R Ruby Sass Scala SQL

Batch File To Run Program As Different User With Password

Hi scorpion99 I have Active Directory installed on my PC and HQD01 is the name of our Domain, when I use shift right click on Active Directory Users and Computers in Using Runas Once I had disabled UAC I was able to successfully run the following command in a command prompt: runas.exe /user:DOMAIN\adminusername "mmc c:\Windows\System32\dsa.msc" 1 runas.exe /user:DOMAIN\adminusername "mmc c:\Windows\System32\dsa.msc" So next www.7-zip.org : highly recommended. 1 Habanero OP Matt_P Jun 3, 2013 at 8:13 UTC Troy Thompson wrote: This doesn't seem to work correctly on my Vista Pro setup. Ad Choices Home Open shortcut to FOLDER as different user.

I can also close the MMC and the CMD closes. Dont know whether there is a solution for this. I'm just going to stick to typing in the password as its not that big of a deal. Batch File Runas Administrator We will soon be using Win Server 2008 at our office, we currently have Win 7 Pro installed on all of our stations.

Umm, pointless? You may get a better answer to your question by starting a new discussion. Try just "explorer /separate" with no .exe on the end.  I could swear I tried this on Vista, but I don't work on Vista very often.  I know it works on check these guys out View this "Best Answer" in the replies below » 13 Replies Tabasco OP Best Answer Marques2759 Jun 3, 2013 at 5:38 UTC For an existing shortcut, edit the

Try this: runas /user:domain\user "mmc %systemroot%\system32\dsa.msc" Don't retire TechNet! Batch File To Run Exe With Username And Password Email Reset Password Cancel Need to recover your Spiceworks IT Desktop password? Also, how do people secure their machines? ... Software Separating programs between UsersHey guys, My question is, where would I go to seperate programs from user to user?

Run Batch File As Another User With Password

Reply Ryan March 14th, 2016 Even after disabling UAC I found that it would still throw a 740 error without the cmd /c in there. try this Is it recommended to practice sight reading by "feeling out the music" instead of counting Should I apply for a tourist visa as a US citizen traveling to the Schengen area Batch File To Run Program As Different User With Password C:\Windows\System32\runas.exe /savecred /user:domain\mylogin "mmc c:\Windows\system32\dsa.msc" (the start in is:  C:\Windows\System32) So, in your scenario you simply want to map a network drive using different credentials and make that a shortcut...basically I'm Batch File To Run Exe As Administrator With Password Cheers for the help Ged Reports: · Posted 4 years ago Top Topic Closed This topic has been closed to new replies.

You will have to necessarily tick the box "Run whether user is logged on or not" and if you do that, the task will not show the user interface of the this contact form GPU RAM CPU ROM Submit Challenge × Sign up with your email address Sign up and get started with the Daily Challenge! The only downside is that the password query isn't as pretty. Fulgan Ars Tribunus Angusticlavius et Subscriptor Tribus: Swiss iguanas Registered: Jun 28, 2000Posts: 7516 Posted: Thu May 06, 2010 2:06 am Quote:use http://www.autoitscript.comWhat's the point of installing and maintaining a 3rd-party Run Batch File With Username And Password

Can I do all that one one computer? gedstar , when i tried the script , it didn't work on my Windows 7 x64 , but when I tried on my Domain Controller (2008 R2 server) it works perfectly. I guess I'll look into the batch workaround, but it's stupid I can't pin the original program or multiple batch files to the taskbar for this. have a peek here Installation & Setup Users and programs and securityHi all I just realized that when i installed windows, I only had an admin account.

When I had first tried using the ‘runas' command I had problems related to permissions e.g. "The requested operation requires elevation"despite adding the Domain Admin user (adm-jonny) as an administrator on Batch Runas I want him to have access to the programs i already have installed But i don't want him to be able to uninstall or install... Wednesday, July 03, 2013 3:00 PM Reply | Quote 1 Sign in to vote The complication is that mmc.exe requires elevation, and runas doesn't start it elevated (even when entering the

My System Specs System Manufacturer/Model Number * BFK Customs * OS W 7 64-bit Ultimate CPU Intel Q9550 Yorkfield Motherboard ASUS P5Q Pro Memory 8GB Dominator 8500C5D Graphics Card ATI :

like if I wanted to install a program on one user, and then have it so i can install the same program again on a different user. It doesn't improve anything compared to a batch file.It does if he wants to keep the password secret. There's a huge security flaw with "runas /savecred ...", as I described in my answer here: superuser.com/a/903881/229612 (and include a working solution to the problem of running a program with elevated Runas Command Without Password Prompt Wednesday, July 03, 2013 3:20 PM Reply | Quote 0 Sign in to vote C:\>runas /user:FABRIKAM\Admin "elevate64.exe mmc.exe dsa.msc" You can get Elevate64.exe and Elevate32.exe (unrestricted freeware) here: http://www.westmesatech.com/misctools.html (download Elevation

Aside from Shift-Right clicking and running as another user, is there a way to either A) have a shortcut always run as my other account or B) allow the "run as runas /user:localAdminUser "notepad.exe"  : launches notepad.exe, appears in Task Manager as the local admin user too. I can runas with other apps just fine (notepad.exe, 7zfm.exe, cmd.exe). http://techvividglobalservices.com/batch-file/restart-batch-file.html My System Specs System Manufacturer/Model Number Too many to describe...

Seven Forums has an excellent tutorial on the subject of adding programs/apps to the Startup file, have a look at the link below. Identifying an old game? FOLLOW US Twitter Facebook Google+ RSS Feed Disclaimer: Most of the pages on the internet include affiliate links, including some on this site.