<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>"RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx</link><description>A whole lot of detail about how to use "RunAs" to run programs under a different account.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: “RunAs” basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#163394</link><pubDate>Wed, 23 Jun 2004 12:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:163394</guid><dc:creator>Frank de Groot</dc:creator><description>I've been doing this since I saw Keith's article and it generally works well for me.&lt;br&gt;&lt;br&gt;The only trouble I had was when running a code from VS.NET with VS.NET running as admin. A debug run works ok, but running without debugging started the process but doesn't show the window (and you can't kill it either because it's running as admin).&lt;br&gt;&lt;br&gt;I suppose the program was sent to the wrong desktop.</description></item><item><title>re: “RunAs” basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#163559</link><pubDate>Wed, 23 Jun 2004 16:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:163559</guid><dc:creator>Aaron Margosis</dc:creator><description>Frank - was this ASP.NET?  And the window you're looking for IE?</description></item><item><title>Running with Least Privilege on Windows</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#163758</link><pubDate>Wed, 23 Jun 2004 19:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:163758</guid><dc:creator>Dana Epp's ramblings at the Sanctuary </dc:creator><description>Aaron Margosis pointed out to me today his weblog which contains some good references and information about running as a limited user on Windows. He had an interesting comment on my different credentials post I did almost a year ago in which he uses a shortcut directly to a cmd window with runas instead of using the explorer view. His suggestion is to do: C:\WINDOWS\system32\runas.exe /u:Administrator &amp;quot;%windir%\System32\cmd.exe /k cd c:\ &amp;amp;&amp;amp; color fc &amp;amp;&amp;amp; title ***** Admin console *****&amp;quot; Makes total sense if you want to use an admin shell. Personally I prefer having the UI available through the explorer view... which has its own limits. This way I don't have to try to remember where the CPL paths are, or what they are called. I just click 'My Computer' and then 'Control Panel' and have at 'er. To each his own. Aaron has some good pointers on his blog about different ways of approaching this. Consider checking it out....</description></item><item><title>re: “RunAs” basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#173239</link><pubDate>Mon, 05 Jul 2004 17:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:173239</guid><dc:creator>Richard Cass</dc:creator><description>I have tried to follow Aaron's advice about running in Standard User mode, but continually hit the snag that folders don't exist (they do).&lt;br&gt;e.g. Run As cmd.exe produces error C:\WINDOWS\system32\cmd.exe  The directory name is invalid.&lt;br&gt;This happens with others (windows update). I am running WXP SP1 on a domain.&lt;br&gt;&lt;br&gt;What step have I missed?</description></item><item><title>re: “RunAs” basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#173625</link><pubDate>Tue, 06 Jul 2004 08:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:173625</guid><dc:creator>Aaron Margosis</dc:creator><description>Richard Cass - can you provide more details about how you're getting to that error message?  I've never seen that in this context.&lt;br&gt;Thanks.</description></item><item><title>re: “RunAs” basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#173738</link><pubDate>Tue, 06 Jul 2004 12:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:173738</guid><dc:creator>Richard Cass</dc:creator><description>My XP Pro SP1 machine is on a domain. Normally I have my user account as part of the Domain Admins as well as a Local Administrator of my PC. No problems there.&lt;br&gt;I wanted to test whether my users could run as a Standard User (currently they are also in the Local Admins group - most of them are software engineers and compiling &amp;amp; installing seems to require admin rights).&lt;br&gt;So I removed myself from these admin groups (ie Users group), logged off/on and tried to test for restrictions. As an example I tried to use Run As on the Command Prompt icon, logged in as the domain admin and then had the error message given in my first feedback.&lt;br&gt;I also tried Windows Update (as a Standard User) and the web page titled Administrators only came up, indicating to use the Run as option. Doing that then gave me the error: C:\WINDOWS\system32\wupdmgr.exe. The directory name is invalid.&lt;br&gt;I was also getting the usual restriction messages (cannot change some of the network settings etc), but I expected that.</description></item><item><title>doesn't work</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#174013</link><pubDate>Tue, 06 Jul 2004 18:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:174013</guid><dc:creator>ch.</dc:creator><description>well I want non-admins run certain applications as admins (otherwise they don't work) - but it keeps forgetting that I set them to run as admin. Once I set the run as admin and then reboot, the setting is lost and normal users can't use it.</description></item><item><title>RunAs with Explorer</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#175489</link><pubDate>Wed, 07 Jul 2004 20:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:175489</guid><dc:creator>Aaron Margosis's WebLog</dc:creator><description /></item><item><title>re: “RunAs” basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#175509</link><pubDate>Wed, 07 Jul 2004 20:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:175509</guid><dc:creator>Aaron Margosis</dc:creator><description>ch - RunAs-admin is not a permanent setting.  You *can* specify on a shortcut that it should run with different credentials, but the user will be prompted for the admin credentials each time the shortcut is invoked.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#177432</link><pubDate>Thu, 08 Jul 2004 19:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:177432</guid><dc:creator>Aaron Margosis</dc:creator><description>Richard Cass - I've asked around and everyone seems stumped by the symptoms you've described.  One colleague suggested the possibility that the DA account does not have the &amp;quot;bypass traverse checking&amp;quot; privilege.  Could you check that?  Also, make sure that Domain Admins is a member of the local Administrators group.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#178935</link><pubDate>Sat, 10 Jul 2004 03:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:178935</guid><dc:creator>Jeff Sontag</dc:creator><description>I like using a shortcut configured to offer the option of using alternate credentials.&lt;br&gt;I noticed that the local administrator account was offered as the default username in the &amp;quot;the following user&amp;quot; section. I added my domain account (the one that is a memeber of Domain Admins) to the local machine's Administrators group (&amp;quot;Domain Admins&amp;quot; was already in this group) and now I can pick my domain admin account from the drop-down list in the  &amp;quot;the following user&amp;quot; section. I hoped that it would remember it even if I then removed my DA account from the local machine's administrator's group, but no good. Do you know a way to make the &amp;quot;the following user&amp;quot; drop-down list remember just domain\username entries, and not the password, without adding the accounts to the local machine's admins or users group?</description></item><item><title>RunAs with Explorer</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#179015</link><pubDate>Sat, 10 Jul 2004 07:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:179015</guid><dc:creator>Aaron Margosis's WebLog</dc:creator><description>How to get Windows Explorer to work with RunAs (and why you might want to).</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#179754</link><pubDate>Sun, 11 Jul 2004 06:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:179754</guid><dc:creator>Aaron Margosis</dc:creator><description>Jeff Sontag - Sorry, no, it's not configurable and it doesn't remember previously used names.  It lists only usernames explicitly listed in the BUILTIN\Administrators group, as well as Client Authentication certificates in the current user's Personal cert store, including smart cards.  (You can run certmgr.msc to see your certs).</description></item><item><title>The directory name is invalid</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#183263</link><pubDate>Wed, 14 Jul 2004 22:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:183263</guid><dc:creator>Chad Pankratz</dc:creator><description>A possible explanation for the &amp;quot;The directory name is invalid&amp;quot; error: Many shortcuts in the Start Menu have &amp;quot;Start in&amp;quot; set to &amp;quot;%HOMEDRIVE%%HOMEPATH%&amp;quot;. If this maps to a network drive on your domain, then if you attempt to Run As a user that cannot see the drive, you will receive the error.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#184175</link><pubDate>Thu, 15 Jul 2004 18:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:184175</guid><dc:creator>Richard Cass</dc:creator><description>Aaron: Sorry I haven't been back before (RSS is great for the initial Post but not for Comments), but setting the DA permission to have the &amp;quot;bypass traverse checking&amp;quot; privilege did not do anything.&lt;br&gt;&lt;br&gt;However,&lt;br&gt;Chad: That was it! Removing the default &amp;quot;Start in&amp;quot; sorted the problem.&lt;br&gt;&lt;br&gt;Many thanks guys.</description></item><item><title>PrivBar -- An IE/Explorer toolbar to show current privilege level</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#195352</link><pubDate>Sun, 25 Jul 2004 06:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:195352</guid><dc:creator>Aaron Margosis' WebLog</dc:creator><description>A toolbar for Explorer and Internet Explorer that shows you broadly at what privilege level that particular instance is running</description></item><item><title>Running restricted -- What does the </title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#227733</link><pubDate>Fri, 10 Sep 2004 07:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:227733</guid><dc:creator>Aaron Margosis' WebLog</dc:creator><description>What does it mean to </description></item><item><title>IE Security</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#246635</link><pubDate>Sat, 23 Oct 2004 14:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:246635</guid><dc:creator>Digging .NET</dc:creator><description>IE Security</description></item><item><title>PrivBar -  An IE/Explorer toolbar to show current privilege level</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#247353</link><pubDate>Mon, 25 Oct 2004 21:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:247353</guid><dc:creator>Lockergnome's IT Professionals</dc:creator><description>Aaron Margosis is a Microsoft employee who is writing a weblog on running Windows with least privilege on the desktop. If you are having trouble running applications under an account with less privileges than administrator, there are many useful suggestions...</description></item><item><title>RunAs with Explorer</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#249757</link><pubDate>Fri, 29 Oct 2004 23:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:249757</guid><dc:creator>The stuff I see and read about</dc:creator><description /></item><item><title>Understanding Least Privilege</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#373036</link><pubDate>Tue, 15 Feb 2005 18:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:373036</guid><dc:creator>Scorpion Software Corporate Weblog</dc:creator><description>The idea that the principle of least privilege requires that a user or process be given no more privilege than necessary to perform a job makes a lot of sense in this hostile digital divide we live in. Least privilege has become a passion of mine, and its reflected in everything that I design now adays. Which is why Carina works so well in the face of hostile and malicious code. In today’s show I talk about the security principle of least privilege, how we use it to protect our customer’s information... and how you can use it to protect your desktops. For more information about least privilege please check out some of these links: nonadmin.editme.com - This is a community web site (wiki) for Windows users who want to learn how to run without Administrator privileges, and why they should do this. &amp;quot;RunAs&amp;quot; basic (and intermediate) topics - Aaron Margosis' introduction on how to use the runas command in Windows Secure Coding Practices: Running with Least Privileges in Windows - An older article I wrote for CodeProject on how to develop using least privilege on Windows Developing Software in Visual Studio .NET with Non-Administrative Privileges - Lars Bergstrom's great article that explains how to productively develop software while logged on with non-administrative privileges. Using a Least-Privileged User Account - A small article on TechNet discussing LUA, and how it will affect LongHorn. After listening to customer feedback, we are going to try a new format with this podcast. We will keep these single topic recordings short (somewhere around 5 minutes) so that people with busy schedules can still get a chance to listen to it. We will leave longer shows for more in depth interviews etc. Please let me know if you like the new format. Think strategically. Protect your information. Enjoy! MP3: Scorpion Vault: Understanding Least Privilege (4:59s / ~4.7mb)...</description></item><item><title>Table of contents, Aaron Margosis' non-admin blog</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#409472</link><pubDate>Tue, 19 Apr 2005 03:22:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:409472</guid><dc:creator>Aaron Margosis' WebLog</dc:creator><description>Complete list of Aaron Margosis' non-admin / least privilege posts, for easy lookup.</description></item><item><title>How was cmd.exe started</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#417588</link><pubDate>Sun, 15 May 2005 12:51:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:417588</guid><dc:creator>rduke15 at gmail.com</dc:creator><description>This is really related to runas and privileges, but is a question about cmd.exe and shells, in case someone knows.&lt;br&gt;&lt;br&gt;Can I find out if my console app. was started from an open cmd.exe console window, or from Start-&amp;gt;Run?&lt;br&gt;&lt;br&gt;I have a Perl script which prints output that the user wants to read.&lt;br&gt;&lt;br&gt;If started from Start-&amp;gt;Run, the window will close immediately. If I put a &amp;quot;press key&amp;quot; prompt in my app, it's annoying in the other case, when the cmd window is staying open anyway and pressing a key would not be needed.&lt;br&gt;&lt;br&gt;Can I somehow differentiate how the app was called, and prompt for a keypress only if needed?</description></item><item><title>re: How was cmd.exe started</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#417590</link><pubDate>Sun, 15 May 2005 12:47:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:417590</guid><dc:creator>rduke15 at gmail.com</dc:creator><description>Sorry, I meant &amp;quot;This is really UN-related...&amp;quot; in the previous post.</description></item><item><title>Spread the LUA joy</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#427780</link><pubDate>Fri, 10 Jun 2005 19:12:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:427780</guid><dc:creator>tonyso</dc:creator><description>Get your friends and family, all those folks that come to you for computer help once their machines have...</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#430581</link><pubDate>Sun, 19 Jun 2005 19:01:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:430581</guid><dc:creator>Alex Mondale</dc:creator><description>I am attempting to follow the shining LUA path, but the following is frustrating me:&lt;br&gt;====================================&lt;br&gt;RUNAS ERROR: Unable to run - cmd.exe&lt;br&gt;5: Access is denied.&lt;br&gt;====================================&lt;br&gt;Could this be because the account I am attempting to runAs has a null pwd? Any other thoughts? Where would I find out what access is being denied to whom?</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#430583</link><pubDate>Sun, 19 Jun 2005 19:22:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:430583</guid><dc:creator>Alex Mondale</dc:creator><description>Interesting, when I (as local admin) runAs a nonpriv account I get &lt;br&gt;&lt;br&gt;RunAs ERROR: 1327: account policy restriction: nonblank password, ...&lt;br&gt;&lt;br&gt;This is something we developers (unfortunately) try to do all the time: develop as local admin, runAs another less priv'ed account, and see what breaks.</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#430586</link><pubDate>Sun, 19 Jun 2005 19:37:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:430586</guid><dc:creator>Alex Mondale</dc:creator><description>Aha! I made the following discoveries:&lt;br&gt;-- when I removed my former Admin Account from Administrators, it had all kind of other rights (act as part of the OS, run as a Service, etc.). Just removing from Admins and adding to Users didn't remove these policy-granted rights.&lt;br&gt;-- Having removed these &amp;quot;extra&amp;quot; privs, I still cannot runAs. Now, I get the same message as when I attempt to run as a nonpriv from a priv account: &lt;br&gt;&lt;br&gt;&amp;quot;RUNAS ERROR: Unable to run - cmd.exe&lt;br&gt;1327: Logon failure: user account restriction.  Possible reasons are blank passw&lt;br&gt;ords not allowed, logon hour restrictions, or a policy restriction has been enfo&lt;br&gt;rced.&amp;quot;&lt;br&gt;&lt;br&gt;-- Gave the local admin a password, guess what happened? It worked, of course.&lt;br&gt;&lt;br&gt;So where do I go to adjust this ppolicy restriction? and, what process or app caused this policy restriction to be made? (Not ruling out Yours Truly, I have the attention span of a Gnat!).</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#430588</link><pubDate>Sun, 19 Jun 2005 19:46:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:430588</guid><dc:creator>Alex Mondale</dc:creator><description>&lt;a rel="nofollow" target="_new" href="http://tinyurl.com/6u739"&gt;http://tinyurl.com/6u739&lt;/a&gt; has info on the use of blank passwords as a Local Sec Policy enforcement. But why should this clobber RunAS?</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#430666</link><pubDate>Mon, 20 Jun 2005 06:16:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:430666</guid><dc:creator>Aaron Margosis</dc:creator><description>Alex --&lt;br&gt;As you found in that URL&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/Default.asp?url=/resources/documentation/Windows/XP/all/reskit/en-us/prdp_log_tyry.asp"&gt;http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/Default.asp?url=/resources/documentation/Windows/XP/all/reskit/en-us/prdp_log_tyry.asp&lt;/a&gt;&lt;br&gt;local accounts with blank passwords can be used to log on only at the console logon screen, not through any other manner.  If you have a computer in a secure location (e.g., a home computer) where you can trust everyone who has physical access, this is very convenient.  RUNAS was specifically and deliberately disallowed with blank passwords. The reason is because if it were allowed and a LUA user accidentally downloaded some malware, RUNAS would offer an easy elevation of privilege for the malware to run code as an admin.  There is a security option that will allow blank password for all other logon types, but I would strongly advise against changing it.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#437276</link><pubDate>Sun, 10 Jul 2005 23:42:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:437276</guid><dc:creator>Alex Mondale</dc:creator><description>Aaron:&lt;br&gt;I have discovered that if the user that is &amp;quot;becoming&amp;quot; admin doesn't have read-only rights to the USER.DAT in the Admin's documents and settings folder, the RUNAS will fail. I have also discovered that MAKEMEADMIN will fail for the same reason. &lt;br&gt;&lt;br&gt;Also, I have seen the MAKEMEADMIN batch file fail in &amp;quot;mid-stream&amp;quot; so that the user was made member of Administrators and then not &amp;quot;demoted&amp;quot; after running the program. Any one else reported this?&lt;br&gt;&lt;br&gt;Alex</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#448910</link><pubDate>Mon, 08 Aug 2005 12:33:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:448910</guid><dc:creator>jodah</dc:creator><description>Hi&lt;br&gt;HELP HELP HELP&lt;br&gt;When I launch Explorer as Admin (RunAs)&lt;br&gt;Explorer won't refresh things automatically. For example, if I create a new file, it might not show up in my admin Explorer window. I know pressing [F5] would solve this problem.&lt;br&gt;Isn't there a possibility to let (admin)-Explorer refresh automatically???&lt;br&gt;&lt;br&gt;Thank you for your help&lt;br&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#449290</link><pubDate>Tue, 09 Aug 2005 05:59:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:449290</guid><dc:creator>Aaron Margosis</dc:creator><description>Alex Mondale - 1. Under what (normal) circumstances would the admin not have full control over its own NTUSER.DAT file?  2.  The error handling in MAKEMEADMIN should always remove the user from the admins group, unless you close the console window prematurely.&lt;br&gt;&lt;br&gt;Jodah - I know of no fix for that particular annoyance.  Just F5 after every operation.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#457602</link><pubDate>Mon, 29 Aug 2005 22:23:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:457602</guid><dc:creator>Jason Mayer</dc:creator><description>Just curious, but do you know of any method to change the default user name when you Run As another user?  </description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#458050</link><pubDate>Tue, 30 Aug 2005 20:40:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:458050</guid><dc:creator>Jason Mayer</dc:creator><description>I found the answer on another web site.  Make a shortcut that runs the command line version of the run as program and use the switches to change the default login.&lt;br&gt;&lt;br&gt;An example would be: &lt;br&gt;C:\WINNT\system32\runas.exe /profile /user:somedomain\jmayer sol.exe&lt;br&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#475401</link><pubDate>Thu, 29 Sep 2005 21:32:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:475401</guid><dc:creator>Derrell Rivers</dc:creator><description>Hello,&lt;br&gt;&lt;br&gt;In your tips and tricks you mentioned the following, &amp;quot;Windows Installer Packages (.msi files) don’t offer a RunAs context menu option.  You might be able to get away with hacking the registry to add that option, or you can just run the .msi file directly on the command line of your admin shell.&amp;quot; &lt;br&gt;Where I work, our developers started using .msi files which doesn't allow desktop support to use Runas option for installs. &lt;br&gt;What steps are needed to set a group policy for our entire environment permitting Runas on .msi?</description></item><item><title>Starting IE from cmd.exe</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#481013</link><pubDate>Fri, 14 Oct 2005 15:17:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:481013</guid><dc:creator>HairyMonster</dc:creator><description>Instead of having ie.cmd or any other .cmd file for starting a registered application, simply type &amp;quot;start iexplore&amp;quot; from the command prompt. If you can use the Start/Run menu item to run the app, this will work from the command-line.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#503069</link><pubDate>Tue, 13 Dec 2005 13:07:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:503069</guid><dc:creator>Perro_Flaco</dc:creator><description>Hi everybody!&lt;br&gt;&lt;br&gt;I hope someone can help me with this, because I'm getting really angry.&lt;br&gt;&lt;br&gt;I'm trying to execute the following command:&lt;br&gt;&lt;br&gt;&amp;quot;runas /user:user_name cmd.exe&amp;quot;&lt;br&gt;&lt;br&gt;When I hit return, it asks me for my password, and here is where the&lt;br&gt;problem begin. I get this error:&lt;br&gt;&lt;br&gt;&amp;quot;Error 1326. Logon failure: unknown user name or bad password.&amp;quot;&lt;br&gt;&lt;br&gt;I've tried with different combination of user_name and password with&lt;br&gt;the same result. I'm sure about the user_name and password. I also have&lt;br&gt;tried this:&lt;br&gt;&lt;br&gt;&amp;quot;runas /user:mymachine\user_name cmd.exe&amp;quot;&lt;br&gt;&lt;br&gt;But the problem remains.&lt;br&gt;&lt;br&gt;I've been looking for a solution in the google, but without any&lt;br&gt;success. Please, if anybody knows how to fix this, let me know!&lt;br&gt;&lt;br&gt;Thank you very much for your help! </description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#503120</link><pubDate>Tue, 13 Dec 2005 17:55:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:503120</guid><dc:creator>Daveib</dc:creator><description>When I use Runas with the following full command line&lt;br&gt;%windir%\system32\runas.exe /profile /user:OFFICE\TestUser/savecred &amp;quot;C:\Program Files\Internet Explorer\iexplore.exe&amp;quot;&lt;br&gt;it comes up with what looks like a command prompt, asking for a password, but the keyboard does not work.  I am unable to type in the password, so the command line window closes without anything happening.&lt;br&gt;Any ideas?</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#503427</link><pubDate>Wed, 14 Dec 2005 06:26:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:503427</guid><dc:creator>Aaron Margosis</dc:creator><description>Daveib - several things:&lt;br&gt;1. It might just be a typo, but you need a space between TestUser and /savecred.  &lt;br&gt;2. The console doesn't echo any characters when you type a password at the RunAs prompt.&lt;br&gt;3.  Are you invoking runas.exe from the Run dialog or from a command shell (cmd.exe)?  If the former, runas.exe is probably telling you what the error is, but the console window is closing before you can see it.  Try running it within a command shell instead of from the Run dialog.&lt;br&gt;HTH</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#516245</link><pubDate>Mon, 23 Jan 2006 19:08:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:516245</guid><dc:creator>kcnpeppa</dc:creator><description>Good article.  I pretty much always use runas and have finally gotten the hang of the workarounds.  However, the few times it does not work is frustrating.  Currently, start menu shortcuts give a &amp;quot;directory name is invalid&amp;quot; error for cmd.exe.  Navigating to the file or running from the run menu works fine.  Mysterious ..... but not surprising.&lt;br&gt;&lt;br&gt;Perro - if this is a local account that should work but I've seen times where it just won't.  Use the GUI.  Navigate to the file and right click.  If it's a valid username and the password has not expired, you should be ok.&lt;br&gt;&lt;br&gt;&lt;br&gt;JB</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#516647</link><pubDate>Tue, 24 Jan 2006 08:35:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:516647</guid><dc:creator>Aaron Margosis</dc:creator><description>JB/kcnpeppa --&lt;br&gt;The issue you raised was covered in an earlier comment:  &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#183263"&gt;http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#183263&lt;/a&gt;&lt;br&gt;&lt;br&gt;HTH&lt;br&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#520669</link><pubDate>Tue, 31 Jan 2006 18:28:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:520669</guid><dc:creator>RJT</dc:creator><description>To provide access to local items requiring Administrator priveleges in our network environment, we created a Service Account with the appropriate authority.  Then, we wrote a Visual Basic application where Windows EXE programs are launched via the &amp;quot;RUN AS&amp;quot; using the Service Account within the VB program.  The problem we have is with command line (CMD) programs.  We have yet to determine a programmatic method to launch the CMD including the credentials required to RUN AS as either VB lines or external BAT files.  We need this to allow users access to  items like &amp;quot;IPConfig /release&amp;quot;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#520737</link><pubDate>Tue, 31 Jan 2006 19:43:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:520737</guid><dc:creator>Aaron Margosis</dc:creator><description>RJT - the best way to grant users the ability to do things like &amp;quot;ipconfig /release&amp;quot; is simply to add them to the &amp;quot;Network Configuration Operators&amp;quot; local group.  Members of this group can manage a small set of network configuration features, such as the &amp;quot;ipconfig&amp;quot; operations.  Note that it does not grant the ability to configure the firewall.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#526811</link><pubDate>Tue, 07 Feb 2006 21:41:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:526811</guid><dc:creator>jimmer</dc:creator><description>RJT,&lt;br /&gt;&lt;br /&gt;Below is a vb script I wrote years ago to flush dns using ipconfig. &amp;nbsp;You could easily modify it to ipconfig /release ipconfig /renew. &amp;nbsp;Look out for line wraps in this post.&lt;br /&gt;&lt;br /&gt;On Error Resume Next&lt;br /&gt;&lt;br /&gt;strComputer = &amp;quot;ITLWWS02&amp;quot;&lt;br /&gt;&lt;br /&gt;Const ForReading = 1&lt;br /&gt;Const ForWriting = 2&lt;br /&gt;Const ForAppending = 8&lt;br /&gt;&lt;br /&gt;vBatPath = &amp;quot;C:\temp\&amp;quot;&lt;br /&gt;vBatFile = &amp;quot;flushdns.bat&amp;quot;&lt;br /&gt;vLocBatFile = vBatPath &amp;amp; vBatFile&lt;br /&gt;vRemBatFile = &amp;quot;\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\c$\temp\&amp;quot;&lt;br /&gt;set fs = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;&lt;br /&gt;if fs.FileExists(vLocBatFile) Then&lt;br /&gt;	fs.DeleteFile(vLocBatFile)&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;if fs.FileExists(vRemBatFile) Then&lt;br /&gt;	fs.DeleteFile(vRemBatFile)&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;set vOutPutFile = fs.CreateTextFile(vLocBatFile, True)&lt;br /&gt;vOutputFile.writeLine &amp;quot;ipconfig /flushdns&amp;quot;&lt;br /&gt;vOutputFile.writeLine &amp;quot;echo flushdns Completed&amp;quot;&lt;br /&gt;vOutputFile.writeLine &amp;quot;echo flushdns Completed &amp;gt; c:\temp\flushdns.log&amp;quot;&lt;br /&gt;&lt;br /&gt;fs.CopyFile vLocBatFile, vRemBatFile&lt;br /&gt;&lt;br /&gt;CmdLine = vLocBatFile&lt;br /&gt;Path = &amp;quot;c:\test&amp;quot;&lt;br /&gt; &lt;br /&gt;set objwbemLocator = CreateObject(&amp;quot;WbemScripting.SWbemLocator&amp;quot;)&lt;br /&gt;set objwbemServices = objwbemLocator.ConnectServer(strComputer, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, 0, null)&lt;br /&gt;&lt;br /&gt;set Process = objwbemServices.Get (&amp;quot;Win32_Process&amp;quot;, 0, null)&lt;br /&gt;Process.Create CmdLine, Path, , ProcessID&lt;br /&gt;&lt;br /&gt;wscript.echo &amp;quot;Complete&amp;quot;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#532751</link><pubDate>Thu, 16 Feb 2006 00:06:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532751</guid><dc:creator>Kaplaa</dc:creator><description>Seems to me that 1) there is no good way to make a shortcut programatically with runas selected and 2) there is no way to set a runas shortcut to user the calling user's environment, such as the /env command from the command line. &amp;nbsp;Am I missing something?</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#532939</link><pubDate>Thu, 16 Feb 2006 05:31:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532939</guid><dc:creator>Aaron Margosis</dc:creator><description>Kaplaa:&lt;br&gt;1) Search MSDN for SLDF_RUNAS_USER&lt;br&gt;2) The RunAs dialog doesn't offer as many options as the RunAs.exe console app. &amp;nbsp;How about something like a shortcut to:&lt;br&gt;runas.exe /env /u:targetuser targetprogram.exe&lt;br&gt;?</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#533240</link><pubDate>Thu, 16 Feb 2006 17:41:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:533240</guid><dc:creator>Kaplaa</dc:creator><description>I am using Vbscript/VBA to create a new shortcut for a database. &amp;nbsp;It appears IShellLinkDataList is not accessible this way -- it is not in the shell createshortcut action nor is it exposed by the WMI interface. &amp;nbsp;Using runas.exe forces me to hardcode the alternate user, which is too kludgy. &amp;nbsp;Currently I advise the users to manually set it in the advanced tab of the shortcut I create using the Shell object. Thanks.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#533608</link><pubDate>Fri, 17 Feb 2006 00:34:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:533608</guid><dc:creator>Aaron Margosis</dc:creator><description>Kaplaa - as far as I can tell, that setting is not exposed to any of the scripting interfaces. &amp;nbsp;C++/COM appears to be required.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#537633</link><pubDate>Thu, 23 Feb 2006 09:39:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:537633</guid><dc:creator>Regina</dc:creator><description>Hi to all, I just used the RunAs command using these parameters: %windir%\system32\runas.exe /profile /netonly /user:regiea\administrator &amp;quot;C:\CPS\SmallExe\CPS.exe&amp;quot; (it's a system that we used in the office and I am logged as a standard user) to run a program as administrator. I was able to do the usual things that we used to do without the RunAs but when I check for the network printer, it is not listed in the printer setup of the program. Running the program as a limited user doesn't give me the right to access some modules so I tested to run it as administrator with the RunAs command. Any idea why? </description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#537635</link><pubDate>Thu, 23 Feb 2006 09:47:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:537635</guid><dc:creator>Aaron Margosis</dc:creator><description>Regina - try using MakeMeAdmin instead (see &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/aaron_margosis/archive/2004/07/24/193721.aspx"&gt;http://blogs.msdn.com/aaron_margosis/archive/2004/07/24/193721.aspx&lt;/a&gt;). &amp;nbsp;If your standard user account is a domain account, the local admin account you're using with runas will not have any authenticated access to network resources, nor to printers configured under your standard user account. &amp;nbsp;Also, if you use &amp;quot;/netonly&amp;quot; in the runas command, you're not running with admin privileges locally - you are merely authenticating as the built-in local admin when making remote requests - which won't be of value since your local accounts are not recognized on remote systems.</description></item><item><title>WebCast's Notes:  Least Privilege and New System.Security Features</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#546681</link><pubDate>Thu, 09 Mar 2006 03:32:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:546681</guid><dc:creator>Dan Sellers's WebLog</dc:creator><description>&lt;br&gt;In today’s Webcast we first started off with a continuation from last week. &amp;amp;amp;nbsp;Last week we explored...</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#556534</link><pubDate>Tue, 21 Mar 2006 17:43:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:556534</guid><dc:creator>Ganesh</dc:creator><description>How to provide password for Runas remote shutdowm command in the text file.&lt;br&gt;This remote shutdowm will be triggered from an application with user account having appropriate remote shutdown privilege. But when I ran that in the command line, it is asking for password. I want to provide the password in the runas command itself.&lt;br&gt;Any help please?</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#556538</link><pubDate>Tue, 21 Mar 2006 17:48:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:556538</guid><dc:creator>Aaron Margosis</dc:creator><description>Ganesh: &amp;nbsp;RunAs accepts passwords only from the keyboard. &amp;nbsp;It was designed this way to help people avoid the unsafe practice of putting passwords in script files.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#561765</link><pubDate>Mon, 27 Mar 2006 11:25:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:561765</guid><dc:creator>Rajesh</dc:creator><description>Is there a away to supply password automatically? I want to make a batch file using &amp;quot;runas&amp;quot; that runs without asking for a password. I tried :&lt;br&gt;&lt;br&gt;&lt;br&gt;echo mypassword &amp;gt;pass.txt&lt;br&gt;runas /noprofile /env user:domain\administraor cmd &amp;lt;pass.txt&lt;br&gt;&lt;br&gt;I get an access &amp;nbsp;denied error.&lt;br&gt;&lt;br&gt;Any ideas?&lt;br&gt;&lt;br&gt;thanks in advance,&lt;br&gt;Rajesh</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#561880</link><pubDate>Mon, 27 Mar 2006 16:29:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:561880</guid><dc:creator>Aaron Margosis</dc:creator><description>Rajesh - RunAs accepts passwords only from the keyboard. &amp;nbsp;It was designed this way to help people avoid the unsafe practice of putting passwords in script files. &lt;br&gt;(I need to put this in the post itself...)</description></item><item><title>Fixing &amp;amp;quot;LUA Bugs&amp;amp;quot;, Part II</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#562094</link><pubDate>Mon, 27 Mar 2006 19:34:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:562094</guid><dc:creator>Aaron Margosis' WebLog</dc:creator><description>A systematic approach for working around LUA bugs that avoids unnecessary exposure - &amp;amp;quot;the rest of the story&amp;amp;quot;</description></item><item><title>All about Foo &amp;raquo; Permissions</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#567242</link><pubDate>Mon, 03 Apr 2006 16:06:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:567242</guid><dc:creator>All about Foo » Permissions</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://foo.aylott.co.uk/?p=10"&gt;http://foo.aylott.co.uk/?p=10&lt;/a&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#577295</link><pubDate>Mon, 17 Apr 2006 05:29:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:577295</guid><dc:creator>asdf</dc:creator><description>I used a slipstreamed version of windows 2000 and changed the &amp;quot;Administrator&amp;quot; user to &amp;quot;admin&amp;quot; (if I do this post install, the folder becomes &amp;quot;Administrator&amp;quot; instead of the shorter version, which is why I didn't opt to do that). Anyway, the RunAs GUI keeps defaulting to &amp;quot;Administrator&amp;quot; which is extremely annoying. Is there anyway to change this behavior (besides renaming the &amp;quot;admin&amp;quot; user to &amp;quot;Administrator&amp;quot; of course)?</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#577296</link><pubDate>Mon, 17 Apr 2006 05:35:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:577296</guid><dc:creator>Aaron Margosis</dc:creator><description>asdf - As far as I know, &amp;quot;Administrator&amp;quot; (or localized equivalent) is hardcoded in Windows 2000. &amp;nbsp;In Windows XP it defaults to the actual name of the builtin admin account (the account with the SID ending with -500).</description></item><item><title>runas vs. encrypted runas</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#597341</link><pubDate>Sun, 14 May 2006 12:58:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:597341</guid><dc:creator>Stefan</dc:creator><description>sometimes we need to let our limited user accounts run as admin accounts only for SPECIFIC applications. of course, mark detailed well the procedure on how to do this. It seems you have to give your limited user the admin name and pw for him/her to enter into the run as dialog. but what if you dont want to give your limited user the the admin password? the limited user could then just log on to the admin acct.&lt;br&gt;&lt;br&gt;how can i specify that information securely in a desktop shortcut in a way that the user cannot dig out? Does anyone here have a teenage child?-you know what i mean.&lt;br&gt;&lt;br&gt;i found this little utility called 'encrypted runas' from wingnut software. Mark, what do yo think of it?</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#597461</link><pubDate>Sun, 14 May 2006 19:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:597461</guid><dc:creator>Aaron Margosis</dc:creator><description>Stefan -&lt;br&gt;Already answered. &amp;nbsp;See Fixing LUA Bugs, Parts I &amp;amp; II:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/aaron_margosis/archive/2006/02/16/533077.aspx"&gt;http://blogs.msdn.com/aaron_margosis/archive/2006/02/16/533077.aspx&lt;/a&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/aaron_margosis/archive/2006/03/27/562091.aspx"&gt;http://blogs.msdn.com/aaron_margosis/archive/2006/03/27/562091.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Utilities such as the one you mentioned are dealt with after item #5. &amp;nbsp;Not highly recommended.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#606363</link><pubDate>Wed, 24 May 2006 23:50:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:606363</guid><dc:creator>mookie</dc:creator><description>How would I trouble shoot windows crashing when trying to use the runas command.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#606386</link><pubDate>Thu, 25 May 2006 00:06:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:606386</guid><dc:creator>Aaron Margosis</dc:creator><description>mookie -- I don't know. &amp;nbsp;What do you mean by &amp;quot;windows crashing&amp;quot;? &amp;nbsp;Blue screen? &amp;nbsp;Explorer has an access violation? &amp;nbsp;Monitor falls off the back of the desk? &amp;nbsp;The windows in your house falling out of their frames and smashing on the floor?</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#608779</link><pubDate>Sat, 27 May 2006 19:08:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:608779</guid><dc:creator>Adam Curtis</dc:creator><description>There's another tidbit with windows.&lt;br&gt;&lt;br&gt;Microsoft ended remote concurrent logons with SP2. I have a fix for that so I can have users logged on remotely without kicking me (the admin) off of my login. Also I have had problems with fast user switching. For some reason my admin can have any password length. But my other users have to default to 13 chars.&lt;br&gt;&lt;br&gt;Try this, Setup a limited account. Make a password over 13 chars. Login to the user. It lets you good. Now switch user, to admin without logging off your new account. Set your screen saver time to 1 min. Make sure it goes to welcome screen on return of user. Now try to logon. For some reason it only lets me type 13 chars into the password box now. Or it just won't logon.</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#609021</link><pubDate>Sun, 28 May 2006 05:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:609021</guid><dc:creator>Aaron Margosis</dc:creator><description>Adam Curtis - Sorry, but I get absolutely no repro. &amp;nbsp;First of all, XP never supported concurrent remote desktops - you could have one logon per user, and only one would ever run &amp;quot;connected&amp;quot; at a time, either at the console or via Remote Desktop. &amp;nbsp;If another user connected via RD, other sessions were disconnected. &amp;nbsp;If you connected via RD with an account that was already logged on, you connected to the session already running - you never got two separate interactive logon sessions for the same user.&lt;br&gt;&lt;br&gt;I tried the password scenario you described, and that didn't repro at all. &amp;nbsp;The text box in which you enter the password might look the same if you type characters after the available space has been filled, but you still need to type the full &amp;gt;13 character password in order to log on.</description></item><item><title>Windows Security &amp;raquo; Running as a Limited User, Part 2</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#616629</link><pubDate>Sun, 04 Jun 2006 09:58:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:616629</guid><dc:creator>Windows Security » Running as a Limited User, Part 2</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://red.caek.org/?p=10"&gt;http://red.caek.org/?p=10&lt;/a&gt;</description></item><item><title>The Directory Name is invalid.</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#618828</link><pubDate>Tue, 06 Jun 2006 09:45:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:618828</guid><dc:creator>Jolly181</dc:creator><description>Hi Folks....&lt;br&gt;&lt;br&gt;I may have missed it in the context but... Iwant to be able to allow end users who do not have the Admin privilages required to be able to get WIndows Updates using the wupdmgr.exe, but I cannot seem to get it right where I can setup the shortcut to start when I double-click on it...??&lt;br&gt;&lt;br&gt;I have changed the START IN box to reflect %WINDIR% -- Nod Good&lt;br&gt;&lt;br&gt;I have pressed SHIFT and then selected RUN AS option and selected &amp;quot;teh Following user&amp;quot; with user name admin and entered the admin's password and clicked OK -- No Good&lt;br&gt;&lt;br&gt;What amI doing wrong..???&lt;br&gt;&lt;br&gt;How can I get this to work.????&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;&lt;br&gt;Julius&lt;br&gt; </description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#631638</link><pubDate>Thu, 15 Jun 2006 03:26:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:631638</guid><dc:creator>Sachin</dc:creator><description>Aoron,&lt;br&gt;&lt;br&gt;Thanks a lot for this insightful post and I keep referring back to it every now and then :). Just for the records I've been running my Win XP under a non-admin a/c for past one year and &amp;quot;till date&amp;quot; there wasn't any issue that I couldn't deal with using RunAs.&lt;br&gt;Now the problem is that ncpa.cpl (it's the control applet for network connections) doesn't want to run at all with RunAs, all it does is open the explorer (and that is being run under the current logged-on user priveleges). There were two ways I tried it out:&lt;br&gt;1) Opened a admin cmd shell using RunAs first, then typed in ncpa.cpl at the prompt: it opens a explorer window running under logged-on user a/c.&lt;br&gt;2) Specified ncpa.cpl as the parameter to the RunAs, something like:&lt;br&gt;C:\WINDOWS\system32&amp;gt;runas /user:xxx &amp;quot;RunDLL32 shell32.dll,Control_RunDLL ncpa.cpl &amp;quot;&lt;br&gt;Produces the same results as in 1.&lt;br&gt;&lt;br&gt;The funny thing is running ncpa.cpl from a normal command shell (i.e. cmd shell running under logged-on user) opens the network connections applet just fine (obviously the stuff like Repairing Wireless Network etc. commands are disabled).&lt;br&gt;I also tried the above two steps for another control applet: timedate.cpl and it worked as expected.&lt;br&gt;&lt;br&gt;Is there something I am missing, I really need to get ncpa.cpl working due to my flaky wireless connexn :(.&lt;br&gt;&lt;br&gt;Thanks!</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#631662</link><pubDate>Thu, 15 Jun 2006 03:50:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:631662</guid><dc:creator>Aaron Margosis</dc:creator><description>Sachin, the answers to your questions are in this follow-up post about RunAs and Explorer: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/aaron_margosis/archive/2004/07/07/175488.aspx"&gt;http://blogs.msdn.com/aaron_margosis/archive/2004/07/07/175488.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;The full Table Of Contents for all my non-admin blog posts is here: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/aaron_margosis/archive/2005/04/18/TableOfContents.aspx"&gt;http://blogs.msdn.com/aaron_margosis/archive/2005/04/18/TableOfContents.aspx&lt;/a&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#631665</link><pubDate>Thu, 15 Jun 2006 03:51:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:631665</guid><dc:creator>Sachin</dc:creator><description>Never mind, just read your next post on the same thing and got it to work under explorer by checking the &amp;quot;Run in separate process&amp;quot; flag.&lt;br&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#637202</link><pubDate>Mon, 19 Jun 2006 21:47:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:637202</guid><dc:creator>Mike Freake</dc:creator><description>Hey,&lt;br&gt;&lt;br&gt;I'm running a Java program (wrapped in an EXE) that can be launched through two shortcuts on my desktop. &amp;nbsp;The first has target: &lt;br&gt;C:\vbmax\maxpw.exe&lt;br&gt;&lt;br&gt;The second has a target:&lt;br&gt;%windir%\system32\runas.exe /user:services /savecred C:\vbmax\maxpw.exe&lt;br&gt;&lt;br&gt;The EXE being launched runs a batch file that is launched using the command:&lt;br&gt;C:\WINDOWS\system32\runas.exe /user:services /savecred C:\vbmax\regquery.bat&lt;br&gt;&lt;br&gt;This batch file needs to be launched on startup of my program to get a registry key value, otherwise my program throws an error and terminates. The first shortcut works everytime for launching the batch file, but I need to launch my program as services. The second shortcut does not always work (i.e. launch the batch file and get the result), only if I've previously logged into the services account.&lt;br&gt;&lt;br&gt;Any ideas? &amp;nbsp;It appears to me that unless I've previously logged in as services, my batch file when launched will not be able to run as services for some reason.&lt;br&gt;&lt;br&gt;Any help would be MUCH appreciated.&lt;br&gt;&lt;br&gt;Mike</description></item><item><title>Windows Security &amp;raquo; Running as a Limited User, Part 2</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#686160</link><pubDate>Wed, 02 Aug 2006 10:35:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:686160</guid><dc:creator>Windows Security » Running as a Limited User, Part 2</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://red.caek.org/?p=11"&gt;http://red.caek.org/?p=11&lt;/a&gt;</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#712610</link><pubDate>Tue, 22 Aug 2006 16:34:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:712610</guid><dc:creator>Jbee</dc:creator><description>&lt;P&gt;I've a case where a program generates an access violation when run with the user as 'administrator' but not when run as 'kathy'( for example). Even if 'kathy' and 'administrator' both have administrator privilages. &lt;BR&gt;&lt;BR&gt;Where should I look?&lt;/P&gt;
&lt;div class=ajmReply&gt;
&lt;P&gt;Sounds like a profile issue -- I'm guessing that "Administrator" installed the program, and that the app was designed/implemented with the implicit assumption that the account that installed the app would be the account that uses the app.&amp;nbsp; Contact the vendor.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/div&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#734197</link><pubDate>Fri, 01 Sep 2006 00:18:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:734197</guid><dc:creator>Joe Smokie</dc:creator><description>Great information. We are looking to lock down our users here but at the same time minimize their pain. Setting up the Admin CMD windows will &amp;nbsp;help out a lot.</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#735974</link><pubDate>Sat, 02 Sep 2006 02:39:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:735974</guid><dc:creator>Leandro Oliveira</dc:creator><description>&lt;P&gt;Hello, &lt;BR&gt;&lt;BR&gt;I´m trying to execute the command interpreter as a domain user. &lt;BR&gt;&lt;BR&gt;My machine isn´t joined on a doimain. &lt;BR&gt;&lt;BR&gt;I always receive a same message when the following command is executed: &lt;BR&gt;&lt;BR&gt;runas /user:MYDOMAIN\MYUSER_ON_THIS_DOMAIN cmd &lt;BR&gt;Attempting to start cmd as user "MYDOMAIN\MYUSER_ON_THIS_DOMAIN" ... &lt;BR&gt;RUNAS ERROR: Unable to run - cmd &lt;BR&gt;1326: Logon failure: unknown user name or bad password. &lt;BR&gt;&lt;BR&gt;I was pretty shure that I typed the rigth password. &lt;BR&gt;&lt;BR&gt;What am I doing wrong? &lt;BR&gt;&lt;BR&gt;[ ]s&lt;/P&gt;
&lt;div class=ajmReply&gt;
&lt;P&gt;The reason you're running into this problem is because your non-domain computer doesn't know anything about the domain you're trying to authenticate against.&amp;nbsp; I.e., it doesn't know how to authenticate anything against the MYDOMAIN domain.&amp;nbsp; Because it's not in the domain or in any trusting domain, it can't know with any degree of assurance what server can authenticate that user.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/div&gt;</description></item><item><title>re: &amp;quot;RunAs&amp;quot; basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#752780</link><pubDate>Thu, 14 Sep 2006 00:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:752780</guid><dc:creator>Eric</dc:creator><description>&lt;P&gt;What do you think about sudo for windows...?&lt;/P&gt;
&lt;div class=ajmReply&gt;
&lt;P&gt;Without referencing the security implications of any specific implementation of SUDO-like functionality for Windows, I wrote a bit about the issues around automatic elevation implementations in Option #5 in &lt;A href="http://blogs.msdn.com/aaron_margosis/archive/2006/03/27/562091.aspx"&gt;Fixing LUA Bugs, Part II&lt;/A&gt;.&amp;nbsp; On the whole, I would consider it something to be avoided if possible.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/div&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#767463</link><pubDate>Sat, 23 Sep 2006 10:19:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:767463</guid><dc:creator>Henrik Jensen</dc:creator><description>Hi Aaron&lt;br&gt;&lt;br&gt;Is there a specific security reason that the enviroment variable %APPDATA% is not defined under a RunAs shell ?&lt;br&gt;&lt;br&gt;Just experienced some programs ( well UltraEdit to be precise) using that enviroment variable to locate its 'Application Data' Folder and that obviously can give some problems when you start up a RunAs shell.&lt;br&gt;&lt;br&gt;Henrik</description></item><item><title>reseting the admin password using registry keys</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#789786</link><pubDate>Wed, 04 Oct 2006 16:24:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:789786</guid><dc:creator>Kunal Sharma</dc:creator><description>&lt;p&gt;I want to know by editing which registry key, I will be able to reset my admin password to blank.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; waiting for the reply&lt;/p&gt;
&lt;p&gt;-- kunal&lt;/p&gt;
</description></item><item><title>re: "RunAs" on Windows Vista</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#810165</link><pubDate>Tue, 10 Oct 2006 00:31:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:810165</guid><dc:creator>Nelson Ruest</dc:creator><description>&lt;P&gt;Hi Aaron,&lt;/P&gt;
&lt;P&gt;My partner and I have been running as normal users in XP for over three years with very few issues. We make extensive use of the command-line Runas command and built .cmd files to create shortcuts to our most common administrative tools. We also rely on the /savecred switch which makes life so much easier when running as a standard user. We are also beta testing Vista as we have several books and white papers to write on it (you'll be seeing the first chapter of our Definitive Guide to Vista Migration coming out very soon from Realtime Publishers).&lt;/P&gt;
&lt;P&gt;We have a few bones to pick with UAC and Runas in Vista. The first is that none of our .cmd Runas commands work in Vista anymore. They all come up with error 740: "the process requires elevation". So basically, there is no longer any way to create command files to easily launch administrative processes. It works in the UI, of course, but we find that that is also a problem. As you know the first job of any hacker is to find out the name of a high privileged account. Well, it will be a no-brainer in Vista because all anyone has to do is select Run as Administrator to view a complete list of all activated administrative accounts on the system. Then all they need is to figure out the password. Not sure this is very good for corporate organizations. At lesat in XP, the Run As GUI is hidden and users need to hold down the Shift key as they right-click a shortcut.&lt;/P&gt;
&lt;P&gt;We think Vista needs a new switch for the Runas command so that you can create .cmd files to launch your most common administrative tools. UAC is great, but when you need to manage systems, it won't take long for system administrators to just turn it off if they have to use the GUI and type in their passwords each time they want elevated privileges.&lt;/P&gt;
&lt;P&gt;Just our opinion,&lt;/P&gt;
&lt;P&gt;Nelson Ruest&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Nelson, thanks for posting.&lt;/P&gt;
&lt;P&gt;Re /savecred -- see my post &lt;A class="" href="http://blogs.msdn.com/aaron_margosis/archive/2006/03/27/562091.aspx"&gt;Fixing LUA Bugs, Part II&lt;/A&gt; (item #5, last resort) for my opinion re the use of /savecred.&lt;/P&gt;
&lt;P&gt;RunAs.exe on Vista is no longer the same animal it was on XP.&amp;nbsp; Now, nothing runs elevated unless the user specifically goes through a confirmation step that is a lot hardier than what we had on XP.&lt;/P&gt;
&lt;P&gt;The names of accounts with admin privileges has never been secret, and protection of those names has never offered significant defense.&amp;nbsp; (E.g., from a non-admin command prompt, run "NET LOCALGROUP ADMINISTRATORS" on an English-language system.)&amp;nbsp; On systems with password-based logons (rather than smartcards, for example), strong passwords are absolutely required.&amp;nbsp; "All they need is to figure out the password" should be somewhere in the range from very difficult to infeasible.&amp;nbsp; (Search for Steve Riley and Jesper Johansson articles on password security.)&lt;/P&gt;
&lt;P&gt;One way to avoid going through the UAC prompt without giving up the security that UAC provides is to launch a command shell as admin (one UAC prompt) and then run admin apps from that command shell.&lt;/P&gt;
&lt;P&gt;Hope this helps - and sorry for the delayed response.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#835131</link><pubDate>Tue, 17 Oct 2006 19:02:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:835131</guid><dc:creator>Andrew Jones</dc:creator><description>&lt;p&gt;I love this article -- I've been dealing with all of these issues for over a year. &amp;nbsp;My solution was to refine an in-house admin console to include a &amp;quot;launch pad.&amp;quot; &amp;nbsp;I run the admin console as an admin and then anything it launches inherits the privileges.&lt;/p&gt;
&lt;p&gt;The launch pad has &amp;quot;favorite&amp;quot; folders [network unc and local] which are opened via Internet Explorer. &amp;nbsp;They can also be opened with CMD.EXE (it automatically maps Z: and runs CMD there). &amp;nbsp;&lt;/p&gt;
&lt;p&gt;It also has &amp;quot;favorite&amp;quot; applications, including Internet Explorer, Word, etc, to get around the problem of doing a &amp;quot;RunAs&amp;quot; on a shortcut per se.&lt;/p&gt;
&lt;p&gt;It also has &amp;quot;favorite&amp;quot; connections, URI controlled FTP, telnet, etc, connections, which honestly don't need to be run under a different context, but it's just flippin' easy to have everything I need in one place.&lt;/p&gt;
&lt;p&gt;This is all customizable.&lt;/p&gt;
&lt;p&gt;It's an in-house app, of course, and is powerful beyond compare. &amp;nbsp;It has replaced EMCO Network Management, DameWare utilities, and SMS, all of which we've tried and disliked.&lt;/p&gt;
&lt;p&gt;What do you guys think it's worth? :)&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#858841</link><pubDate>Mon, 23 Oct 2006 05:12:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:858841</guid><dc:creator>Krangath</dc:creator><description>&lt;p&gt;To run an .msi as admin do a 'Runas' on the 'Command Prompt' under Accessories, and run the .msi from the command prompt.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#872601</link><pubDate>Wed, 25 Oct 2006 13:43:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:872601</guid><dc:creator>Henrik</dc:creator><description>&lt;p&gt;Hi Aaron&lt;/p&gt;
&lt;p&gt;In Xp, I have made a registry entry on the file type '*' to give a &amp;quot;Run as Admin...&amp;quot; right click menu item in Explorer on all files. This calls the runas console as usual with the account you specify.&lt;/p&gt;
&lt;p&gt;Doing this, instead of using the GUI &amp;quot;Run as...&amp;quot; spares me some mouse clicks and selecting the right account in the &amp;quot;User name&amp;quot; Drop down edit box ( very annoying, as someone else also has commented on earlier, because, in my case the default Administrator is listed first). Further more I get the bonus that all registered and unregistered file extension gets a faster Run As path. (The GUI RunAs only seems to work on certain extensions)&lt;/p&gt;
&lt;p&gt;The .reg file looks like this and does only change the '*' right click menu for the current user.&lt;/p&gt;
&lt;p&gt;-----------------------------------------------&lt;/p&gt;
&lt;p&gt;Windows Registry Editor Version 5.00&lt;/p&gt;
&lt;p&gt;[HKEY_CURRENT_USER\Software\Classes\*\shell\Run as Admin...\command]&lt;/p&gt;
&lt;p&gt;@=&amp;quot;%SystemRoot%\\system32\\runas.exe /user:%COMPUTERNAME%\\YourAdminAccount \&amp;quot;%L\&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;-----------------------------------------------&lt;/p&gt;
&lt;p&gt;Now I just wondered if you can see any security implications with this approach ?&lt;/p&gt;
&lt;p&gt;Henrik&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#872866</link><pubDate>Wed, 25 Oct 2006 16:40:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:872866</guid><dc:creator>Henrik</dc:creator><description>&lt;p&gt;Clarification&lt;/p&gt;
&lt;p&gt;'YourAdminAccount' in the above registry file example must be replaced with the name of your Admin account e.g.:&lt;/p&gt;
&lt;p&gt;@=&amp;quot;%SystemRoot%\\system32\\runas.exe /user:%COMPUTERNAME%\\SuperMe \&amp;quot;%L\&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;Henrik&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#874271</link><pubDate>Wed, 25 Oct 2006 22:05:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:874271</guid><dc:creator>Henrik</dc:creator><description>&lt;P&gt;Oh boy&lt;/P&gt;
&lt;P&gt;%SystemRoot% does not expand so one has to hard code &lt;/P&gt;
&lt;P&gt;@="C:\\Windows\\system32\\runas.exe /user:%COMPUTERNAME%\\SuperMe \"%L\""&lt;/P&gt;
&lt;P&gt;and I just discovered that it only works on files registered as executable (of course stupid).&lt;/P&gt;
&lt;P&gt;I might better find some other way to spare me from all those mouse clicks when I want to run as admin.&lt;/P&gt;
&lt;P&gt;Sorry for the clutter&lt;/P&gt;
&lt;P&gt;Henrik&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Did you try creating an "Expandable String Value" (REG_EXPAND_SZ) instead of just a "String Value" (REG_SZ)?&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#877870</link><pubDate>Fri, 27 Oct 2006 05:33:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:877870</guid><dc:creator>Henrik</dc:creator><description>&lt;p&gt;Yeh the REG_EXPAND_SZ type had slipped my mind that was oc the problem. :)&lt;/p&gt;
&lt;p&gt;Anyway - I thought that I wouldn't post it because the raw REG_EXPAND_SZ in a .reg file looks ugly but here it is: ( also changed the '*' to 'exefile' to only show for exe and lnk files)&lt;/p&gt;
&lt;p&gt;---------------------------------------------------&lt;/p&gt;
&lt;p&gt;Windows Registry Editor Version 5.00&lt;/p&gt;
&lt;p&gt;[HKEY_CURRENT_USER\Software\Classes\exefile\shell\Run as Admin...\command]&lt;/p&gt;
&lt;p&gt;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;6e,00,61,00,73,00,2e,00,65,00,78,00,65,00,20,00,2f,00,75,00,73,00,65,00,72,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,3a,00,25,00,43,00,4f,00,4d,00,50,00,55,00,54,00,45,00,52,00,4e,00,41,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;4d,00,45,00,25,00,5c,00,53,00,75,00,70,00,65,00,72,00,4d,00,65,00,20,00,22,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,25,00,4c,00,22,00,00,00&lt;/p&gt;
&lt;p&gt;---------------------------------------------------&lt;/p&gt;
&lt;p&gt;Do you know if it's possible to use a human readable notation for REG_EXPAND_SZ in .reg files ? - e.g: &lt;/p&gt;
&lt;p&gt;@=ascii(2):%SystemRoot%\\system32\\runas.exe /user:%COMPUTERNAME%\\SuperMe &amp;quot;%L&amp;quot;&lt;/p&gt;
&lt;p&gt;Henrik&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#877944</link><pubDate>Fri, 27 Oct 2006 05:58:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:877944</guid><dc:creator>Henrik</dc:creator><description>&lt;p&gt;And now you cannot change 'SuperMe' to the your Admin Account name but has to manually go to the reg path&lt;/p&gt;
&lt;p&gt;[HKEY_CURRENT_USER\Software\Classes\exefile\shell\Run as Admin...\command]&lt;/p&gt;
&lt;p&gt;and do the changes, ( unless you've got a &amp;quot;Absolute hex-pitch&amp;quot; &lt;a rel="nofollow" target="_new" href="http://en.wikipedia.org/wiki/Absolute_pitch"&gt;http://en.wikipedia.org/wiki/Absolute_pitch&lt;/a&gt; ;) )&lt;/p&gt;
&lt;p&gt;Henrik&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1094843</link><pubDate>Fri, 17 Nov 2006 20:32:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1094843</guid><dc:creator>LUA Works</dc:creator><description>&lt;P&gt;Why the heck would you even bother with LUA if you try to run with blank admin passwords?!&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Starting with Windows XP, a blank password is actually &lt;I&gt;more secure&lt;/I&gt; for certain scenarios than a weak password.&amp;nbsp; By default, an account with a blank password can be used only for logging on at the console.&amp;nbsp; It cannot be used for network access, and it cannot be used with RunAs.&amp;nbsp; The user experience of just clicking on your name to log on can’t be beat for simplicity.&amp;nbsp; If you can trust everyone who has physical access to the computer not to log on as someone else or abuse the admin account, this is a great way to go.&amp;nbsp; If not, you can always enable passwords.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1095367</link><pubDate>Fri, 17 Nov 2006 23:26:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1095367</guid><dc:creator>Ewic</dc:creator><description>&lt;p&gt;With Vista, is it possible to perform a runas.exe /user:&amp;lt;specific user domain\account&amp;gt; through the GUI like can be done with the CLI?&lt;/p&gt;
&lt;p&gt;I only have &amp;quot;run as administrator&amp;quot; in my menu option and i cannot specific different accounts, it just always opens up the programs without asking me who i want to run it as.&lt;/p&gt;
&lt;p&gt;Is this feature gone or am I missing something?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ewic&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1266968</link><pubDate>Tue, 12 Dec 2006 19:42:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1266968</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;I have the same question as Ewic. A bit frustrating when I can't run admin tools as a specific user.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1333526</link><pubDate>Wed, 20 Dec 2006 23:13:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1333526</guid><dc:creator>cannedsoda</dc:creator><description>&lt;p&gt;Same question as above. &amp;nbsp;I used the runas command to run selected apps and consoles as my domain admin account. &amp;nbsp;When trying to open up command prompt with privileges to run some vbscripts. &amp;nbsp;It returns back, &lt;/p&gt;
&lt;p&gt;&amp;quot;Cscript error: Loading your settings failed. (Access is denied.)&amp;quot;&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1333541</link><pubDate>Wed, 20 Dec 2006 23:31:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1333541</guid><dc:creator>cannedsoda</dc:creator><description>&lt;p&gt;I guess the workaround is to change the local GPO to prompt for credentials instead of prompt for consent. &amp;nbsp;Found it over at Josh's windowsconnected site, &lt;a rel="nofollow" target="_new" href="http://windowsconnected.com/blogs/joshs_blog/archive/2006/12/01/windows-vista-tip-run-as-administrator.aspx"&gt;http://windowsconnected.com/blogs/joshs_blog/archive/2006/12/01/windows-vista-tip-run-as-administrator.aspx&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1370794</link><pubDate>Thu, 28 Dec 2006 00:34:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1370794</guid><dc:creator>William</dc:creator><description>&lt;P&gt;After installing a required application for some client's, when they try to Right Click and select "RunAs" on an advertised shortcut, for example in the AdminToolPak, the GUI dialogbox that allows alternative credentials to be entered does not appear. If the application causing the issue is removed, "RunAs" functions properly again. &lt;/P&gt;
&lt;P&gt;Is there a registry key that controls the GUI interface for RunAs?&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;William, it sounds to me like the required application is installing a shell extension of some kind that is modifying the shortcut menu and hijacking the effects of the RunAs verb, causing it to do nothing. Possible?&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;More info: a colleague informs me that a common cause of the behavior you're seeing is a badly implemented context menu extension that implements ::InvokeCommand() without testing the verb that it was called with.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1410996</link><pubDate>Thu, 04 Jan 2007 17:52:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1410996</guid><dc:creator>Dmitry</dc:creator><description>&lt;P&gt;Hello All, &lt;/P&gt;
&lt;P&gt;Is it possible to start runas and type password for user automaticaly on Windows Vista?&lt;/P&gt;
&lt;P&gt;I'm use command line: &lt;/P&gt;
&lt;P&gt;runas.exe /user:i_am some_program.exe&lt;/P&gt;
&lt;P&gt;&amp;lt;ENTER&amp;gt;&lt;/P&gt;
&lt;P&gt;Than password input has required. &lt;/P&gt;
&lt;P&gt;How to input password automatically via parameters or type it by another program?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Dmitry, RunAs accepts passwords only from the keyboard.&amp;nbsp; It was designed this way to help people avoid the unsafe practice of putting passwords in script files.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>IE Security</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1416678</link><pubDate>Fri, 05 Jan 2007 16:38:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1416678</guid><dc:creator>Gridding .NET</dc:creator><description>&lt;p&gt;IE is definitely the most insecure gateway to a PC. So I was thinking: why not run it in a guest account...&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1449725</link><pubDate>Thu, 11 Jan 2007 10:50:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1449725</guid><dc:creator>mike</dc:creator><description>&lt;P&gt;im confused about something simple&lt;/P&gt;
&lt;P&gt;the only reason to use RunAs or MakeMeAdmin, is for convenience over the Fast User Switching?&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;mike -- Generally, Fast User Switching (FUS) is preferable.&amp;nbsp; However, on Windows XP,&amp;nbsp;FUS is not available when the computer is joined to a domain.&amp;nbsp; (That limitation has been removed in Windows Vista.)&amp;nbsp; MakeMeAdmin can still be useful if you need to temporarily elevate your regular account.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1481100</link><pubDate>Wed, 17 Jan 2007 04:27:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1481100</guid><dc:creator>Juls</dc:creator><description>&lt;P&gt;Interesting reading. &amp;nbsp;Is there a way to programmitically display the RUNAS GUI to install a setup.exe. I could simulate the front end but that seems excessive.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Juls, if you try to start any program called setup.exe or install.exe from Explorer or the Run dialog, it will automatically display a RunAs prompt.&lt;/P&gt;
&lt;P&gt;Does this help?&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1523633</link><pubDate>Thu, 25 Jan 2007 00:20:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1523633</guid><dc:creator>Domingos Zamberlan</dc:creator><description>&lt;p&gt;I need to run the timedate.cpl passing parameters in the line command. It's possible?&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1523655</link><pubDate>Thu, 25 Jan 2007 00:22:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1523655</guid><dc:creator>Domingos Zamberlan</dc:creator><description>&lt;P&gt;Sorry...My english is not very well.. Do you know how parameters are accepted by timedeate.cpl? Is possible running with runas? TKS...&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Domingos:&amp;nbsp; I don't know of a way.&amp;nbsp; timedate.cpl actually becomes an argument to rundll32.exe (as do all .cpl files).&amp;nbsp; What exactly are you trying to do with it?&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1559458</link><pubDate>Wed, 31 Jan 2007 01:31:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1559458</guid><dc:creator>Coder</dc:creator><description>&lt;P&gt;Whats the point of having a commad that cannot be used programaticaly, in fact why does windows even bother with tere commad shell at all, it like the guys at MS said those UNIX guys always seem to messing around at with "some kind of text window???" lets have one too it will make it look like we know what we're doin!&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Coder:&amp;nbsp; I assume your point is about runas.exe not taking a password as a parameter.&amp;nbsp; Runas.exe is not a command -- it's a utility program.&amp;nbsp; It is designed specifically for interactive use, with a goal of not encouraging the unsafe practice of embedding passwords in plain-text script files.&amp;nbsp; The underlying APIs (e.g., &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms682431.aspx" target=_blank&gt;CreateProcessWithLogonW&lt;/A&gt;) &lt;EM&gt;can&lt;/EM&gt; be used programmatically.&amp;nbsp; And wrt the command shell, nothing in the UNIX world (that I'm aware of) can match what &lt;A class="" href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target=_blank&gt;Windows PowerShell&lt;/A&gt; does.&amp;nbsp; Download it and try it out.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ____&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; / ___|______/&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_n__/ =|] &amp;nbsp;|_____|&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;~{8-B )------|)____&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u &amp;nbsp;\ &amp;nbsp;____|_____|&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \____| &amp;nbsp; &amp;nbsp; &amp;nbsp;\&lt;/P&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1565303</link><pubDate>Wed, 31 Jan 2007 16:47:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1565303</guid><dc:creator>Coder</dc:creator><description>&lt;P&gt;Im not accessing it from a script im a accessing it from java's runtime.exec with other exe i can run them and read from their stdOut and write to their stdIn, only RunAS doesn't use stdIn like most command line apps, so i cannot pass in the password to it. The password is not stored in plain text anywhere so there is no chance of it being read. Besides I'M THE ADMINISTRATOR so if i want to write the password i ten foot high letters on the outside of the building then thats my look-out surley.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Well, RunAs is not the right tool for you, then.&amp;nbsp; That's not what it was designed for.&lt;/P&gt;
&lt;P&gt;Where does the password come from, then?&amp;nbsp; Is it embedded in your Java source?&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1566080</link><pubDate>Wed, 31 Jan 2007 19:20:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1566080</guid><dc:creator>Coder</dc:creator><description>&lt;P&gt;Its ok i fixed the problem apparently i needed to install Solaris, not windows. As windows isn't very good at this type of interaction with none ms products.&lt;/P&gt;
&lt;P&gt;Where does the password come from, then? &amp;nbsp;Is it embedded in your Java source?&lt;/P&gt;
&lt;P&gt;- Over secure connection.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Ha.&amp;nbsp; Very cute.&amp;nbsp; So if you're writing custom code anyway, you want to use CreateProcessWithLogonW as I mentioned before, not RunAs.exe.&amp;nbsp; If you really need a command line utility, you can use &lt;A class="" href="http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx"&gt;PsExec&lt;/A&gt;, as deXter recently mentioned &lt;A class="" href="http://blogs.msdn.com/aaron_margosis/archive/2004/07/24/193721.aspx#1551380"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1567111</link><pubDate>Wed, 31 Jan 2007 23:33:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1567111</guid><dc:creator>dyanni@alltel.net</dc:creator><description>&lt;p&gt;I have groups of users that need to be given admin access to their workstation just to be able to update software on their PC as needed.&lt;/p&gt;
&lt;p&gt;In the 'good old' unix days - I could just set the sticky bit on the program - and the privilege would follow the application.&lt;/p&gt;
&lt;p&gt;Is there a Windows equivalent to 'trusted' applicaiton.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1586195</link><pubDate>Sat, 03 Feb 2007 04:23:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1586195</guid><dc:creator>Iggs</dc:creator><description>&lt;P&gt;I'm not a scripting guy, I'm a sysadmin. I would love to use this script for making administative changes on users'. By default Domain Admins are members of local Administrators group, but I never sure what is local administrator's password is. I tried making changes to the script to prompt me for username and password of an account with admin rights, which is a domain admin account and it works, however for some reason it does it twice. I used SET /P for that, just for the reference, I would like to know how to populate _Admin_ variable with something I want.&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Iggs:&amp;nbsp; the only change you &lt;EM&gt;should &lt;/EM&gt;need is to change the&amp;nbsp;&lt;STRONG&gt;set _Admin_ &lt;/STRONG&gt;line to&lt;BR&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set _Admin_=MYDOMAIN\MyAdminAccount&lt;BR&gt;&lt;/STRONG&gt;where MYDOMAIN and MyAdminAccount are replaced with your domain and your domain admin account.&amp;nbsp; Is that not working?&amp;nbsp; When you say, "it does it twice", what do you mean -- it does &lt;EM&gt;what&lt;/EM&gt; twice?&amp;nbsp; Note that with MakeMeAdmin, you get prompted for two passwords:&amp;nbsp; first the admin account password, then the password of the user you're temporarily elevating.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1623654</link><pubDate>Thu, 08 Feb 2007 06:34:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1623654</guid><dc:creator>Roger Sarlouis</dc:creator><description>&lt;p&gt;I just installed Vista on my computer.&lt;/p&gt;
&lt;p&gt;I went to winzip to download the latest version.&lt;/p&gt;
&lt;p&gt;I downloaded it to a ( Updates ) folder that I created within the new windows explorer. &amp;nbsp;On the top left section I Clicked on the Organize drop down and created the new folder.&lt;/p&gt;
&lt;p&gt;I can download winzip110.exe without issue.&lt;/p&gt;
&lt;p&gt;Every time I trywinzip110 in order to install winzip I get the following error:&lt;/p&gt;
&lt;p&gt;Directory name is invalid.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1684183</link><pubDate>Thu, 15 Feb 2007 18:41:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1684183</guid><dc:creator>Firefox</dc:creator><description>&lt;p&gt;&amp;quot;Its ok i fixed the problem apparently i needed to install Solaris, not windows. As windows isn't very good at this type of interaction with none ms products.&amp;quot;&lt;/p&gt;
&lt;p&gt;Windows isn't too hot at interaction WITH ms products either! &lt;/p&gt;
&lt;p&gt;I have the problem whyby I am using runas from the command prompt in Vista and it goes away to call the app/program, I am then prompted with a password box (as expected) I type this in, then....................NOTHING, yep nothing actually happens.&lt;/p&gt;
&lt;p&gt;I also got round the run as administrator option to be able to run explorer as my own admin account, all appears to function correctly with explorer opening, it's only after trying to access something I realise it hasn't actually raised my credentials at all! HELP &amp;nbsp;&lt;/p&gt;
</description></item><item><title>Setting color for *all* CMD shells based on admin/elevation status</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1745577</link><pubDate>Fri, 23 Feb 2007 08:55:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1745577</guid><dc:creator>Aaron Margosis' WebLog</dc:creator><description>&lt;p&gt;How to automatically set the color and title of *all* CMD shells based on admin/elevation status with a one-time, one-line configuration change to your system.&lt;/p&gt;
</description></item><item><title>re: "RunAs" on Windows Vista</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1851653</link><pubDate>Sat, 10 Mar 2007 13:27:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1851653</guid><dc:creator>Marvin</dc:creator><description>&lt;P&gt;Problems in vista with runas and similar tools like cpau, runasprofessional, emco runas...&lt;/P&gt;
&lt;P&gt;The tools can pipe a password to run applications with anohter useraccount. Now the tools have got problems to run applications with an activated uac on vista. I only know the tool runasspc from robotronic who can work together with uac on vista.&lt;/P&gt;
&lt;P&gt;The only way i found to use the other tools is to deaktviate uac or use the built-in administrator account. &lt;/P&gt;
&lt;P&gt;Any other solution?&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;On Vista, RunAs.exe will let you run an app as another user, but not elevated -- you cannot get something running elevated without going through the UAC elevation UI.&amp;nbsp; &lt;EM&gt;That is a good thing.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>RunAs" on Vista with password</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1940724</link><pubDate>Sat, 24 Mar 2007 08:39:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1940724</guid><dc:creator>Marvin</dc:creator><description>&lt;p&gt;you can not pipe a password in runas like cpau.&lt;/p&gt;
&lt;p&gt;On vista cpau is not working. &lt;/p&gt;
&lt;p&gt;Now i use the tool runasspc.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1964315</link><pubDate>Tue, 27 Mar 2007 18:08:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1964315</guid><dc:creator>Aikidojoe</dc:creator><description>&lt;p&gt;I am having a problem when I use Run As to start an application, with opens the app, but does not include any local/network printers. &amp;nbsp;Is there a solution to this problem?&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#1964958</link><pubDate>Tue, 27 Mar 2007 18:49:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1964958</guid><dc:creator>Aikidojoe</dc:creator><description>&lt;p&gt;It happens in both 2000 and XP, this used to work about one month ago.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#2011715</link><pubDate>Mon, 02 Apr 2007 15:27:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2011715</guid><dc:creator>John Tonks</dc:creator><description>&lt;p&gt;Hi all, I have read through most of this to apologies if this is a repeat.&lt;/p&gt;
&lt;p&gt;I was having problems using the RUNAS command from a XP/SP1 worksation, logged on as a normal users account. I was trying to run a command box as a admin user from another domain, based on windows 2000. &lt;/p&gt;
&lt;p&gt;First I Mapped a network drive to the \\windows2000server\c$ as (Z:\) in the other domain &amp;amp; selected the connect using a different user name, input my admin name and password so &amp;lt;otherdomain\admin&amp;gt;&amp;lt;password&amp;gt; in the relevant box’s. Then brought up a command box, switched to z:\ then typed &amp;lt;runas /user:otherdomain\admin &amp;quot;cmd&amp;quot;&amp;gt; but got 1326: Logon failure. So tried &amp;lt;runas /netonly /user:otherdomain\admin &amp;quot;cmd&amp;quot;&amp;gt; but got 3: The system cannot find the path specified. So it was authenticating at some level? So it got me thinking where is it checking for the user credentials…&lt;/p&gt;
&lt;p&gt;RESOLUTION: On my local workstation I added in the &amp;lt;otherdomain\admin&amp;gt; account into the local administrators group (rebooted). Then typed runas /netonly /user:otherdomain\admin &amp;quot;cmd&amp;quot;&amp;gt;. SUCCESS! A new cmd box appeared with cmd(running as otherdmain\admin) in the top box. I then loaded my excel spreadsheet with all my lovely macros in it from via the command prompt, and all functioned as it it was being run by an administrator in the other domain, except on this domain on a standard users workstation. &lt;/p&gt;
&lt;p&gt;So I think what that equates to is that runas wont work unless the user name your “running as” has the relevant permissions on the local machine your running it from&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#2011742</link><pubDate>Mon, 02 Apr 2007 15:33:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2011742</guid><dc:creator>John Tonks</dc:creator><description>&lt;P&gt;So yes no need to map network drives or what have you just sort the permissions out and run a cmd box and type runas /netonly /user:otherdomain\admin "cmd"&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;@John Tonks:&amp;nbsp; For &lt;STRONG&gt;runas.exe&lt;/STRONG&gt; (without &lt;STRONG&gt;/netonly&lt;/STRONG&gt;)&amp;nbsp;the account you specify after the &lt;STRONG&gt;/u&lt;/STRONG&gt; option must be able to log on to the local machine.&amp;nbsp; You mentioned that this was an account from another domain -- that could be a problem.&amp;nbsp; When you specify &lt;STRONG&gt;/netonly&lt;/STRONG&gt;, the program runs as the same account on the local system, but whenever it uses SSPI to authenticate to a remote system, it does so using the account credentials you specified.&amp;nbsp; The account is not authenticated locally, only when you attempt remote access.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" via VBA in MS ACCESS 2003</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#2025004</link><pubDate>Wed, 04 Apr 2007 14:02:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2025004</guid><dc:creator>André</dc:creator><description>&lt;p&gt;How can I execute applications with RUNAS in MS ACCESS 2003 VBA?&lt;/p&gt;
&lt;p&gt;-------------------&lt;/p&gt;
&lt;p&gt;I want to execute applications via a database. The user must login, and when logged-in, the user can execute applications.&lt;/p&gt;
&lt;p&gt;For the moment I use de SHELL command in VBA.&lt;/p&gt;
&lt;p&gt;Works very nice but when I need to us RUNAS it is not working.&lt;/p&gt;
&lt;p&gt;SHELL (&amp;quot;RUNAS x&amp;quot;) does not work because it is closing each time the CMD window. When I place the string RUNAS x after starting CMD manually, it works fine.&lt;/p&gt;
&lt;p&gt;Regards, Andr&amp;#233;&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#2067046</link><pubDate>Tue, 10 Apr 2007 05:41:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2067046</guid><dc:creator>Paul</dc:creator><description>&lt;P&gt;Password sending and runas. &amp;nbsp;The short answer is that with out a real bodge you can not use runas. &amp;nbsp;A defferent exe that I found runas102.exe &lt;A href="http://www.anbsoftware.co.uk/netadmin/runas/" target=_new rel=nofollow&gt;http://www.anbsoftware.co.uk/netadmin/runas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Will let you pass the password&lt;/P&gt;
&lt;P&gt;copy it to your %windir$%&lt;/P&gt;
&lt;P&gt;open us a cmd prompt and type runas102.exe /?&lt;/P&gt;
&lt;P&gt;Works a treat&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Paul:&amp;nbsp; Looks highly risky to me -- it doesn't even pretend to protect the password, so you're going to keep it in a plain text file?&amp;nbsp; Bad idea.&lt;/P&gt;
&lt;P&gt;BTW, what is a "bodge"?&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#2067296</link><pubDate>Tue, 10 Apr 2007 06:22:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2067296</guid><dc:creator>Paul</dc:creator><description>&lt;P&gt;Hi Aaron:&lt;/P&gt;
&lt;P&gt;Yes in plain txt it is risky.&lt;/P&gt;
&lt;P&gt;This is the runas102.exe that will let people pass a password. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;From there once you have the context of using runas102.exe you can move it in to a VBS (encoded) script. &amp;nbsp;As a strong suggestion, do not use domain admin credentials.&lt;/P&gt;
&lt;P&gt;Is a vbs encoded script decyptable, Yes found the tool on good old google.&lt;/P&gt;
&lt;P&gt;They wanted to use runas with a password from the comand line, with runas102.exe you can. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously in each case security would need to be looked at.&lt;/P&gt;
&lt;P&gt;On a funnier note you can only use the application in the context of the user you are running as. &amp;nbsp;If you runas a local power or admin user, from the application you will not be able to directly save to the network.&lt;/P&gt;
&lt;P&gt;"bodge"= Australian for some times work sometimes does not.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Bodge" target=_new rel=nofollow&gt;http://en.wikipedia.org/wiki/Bodge&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Paul:&amp;nbsp; Encoding is not the same as encryption.&amp;nbsp; And even then:&amp;nbsp; anything that can be automatically decrypted by authorized software running as the user can be decrypted by malware running as the user.&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#2619613</link><pubDate>Mon, 14 May 2007 10:36:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2619613</guid><dc:creator>MikeH</dc:creator><description>&lt;p&gt;You can activate UAC UI through VB-Script and then start your batch file with elevated rights: &lt;a rel="nofollow" target="_new" href="http://newyear2006.wordpress.com/2007/02/04/datum-unter-vista-per-vbscript-setzen-mit-uac-unterstutzung/"&gt;http://newyear2006.wordpress.com/2007/02/04/datum-unter-vista-per-vbscript-setzen-mit-uac-unterstutzung/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>RunAs on Longhorn</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#2677833</link><pubDate>Wed, 16 May 2007 21:14:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2677833</guid><dc:creator>Rose</dc:creator><description>&lt;P&gt;I am currently building applications on Longhorn and need to run as a different service account. &amp;nbsp;At the command prompt, I've entered '&amp;gt;runas /user:domain\serviceaccount cmd'.&lt;/P&gt;
&lt;P&gt;I enter in the password when prompted. and then get this error:&lt;/P&gt;
&lt;P&gt;RUNAS ERROR: Unable to run - cmd&lt;/P&gt;
&lt;P&gt;1327: Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.&lt;/P&gt;
&lt;P&gt;The password is correct so I'm at a loss as to what to do next.&lt;/P&gt;
&lt;P&gt;Rose&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;Rose:&amp;nbsp; Is the service account granted the ability to log on interactively?&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#3588999</link><pubDate>Thu, 28 Jun 2007 22:12:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3588999</guid><dc:creator>Maria</dc:creator><description>&lt;P&gt;How do you get the runas to authenticate on the domain along with the local computer? &amp;nbsp;I am trying to run an install which requires access to network shares. &amp;nbsp;Without domain authentication, I cannot make this happen!&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;@Maria:&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="http://blogs.msdn.com/aaron_margosis/archive/2004/07/24/193721.aspx"&gt;MakeMeAdmin&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;-- Aaron&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>And so this is Vista…</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#3589072</link><pubDate>Thu, 28 Jun 2007 22:23:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3589072</guid><dc:creator>Aaron Margosis' "Non-Admin" WebLog</dc:creator><description>&lt;p&gt;What becomes of all my earlier non-admin tips, tricks and recommendations vis-&amp;#224;-vis RunAs, MakeMeAdmin, PrivBar and their interactions with IE and Explorer? The short answer is that Vista changes just about everything with respect to running with least&lt;/p&gt;
</description></item><item><title>Job: Security  &amp;raquo; Blog Archive   &amp;raquo; Introducing Alcatraz: Convenient Least-Privilege for Windows XP and Vista</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#3600721</link><pubDate>Fri, 29 Jun 2007 12:34:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3600721</guid><dc:creator>Job: Security  » Blog Archive   » Introducing Alcatraz: Convenient Least-Privilege for Windows XP and Vista</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.rachner.us/blog/?p=6"&gt;http://www.rachner.us/blog/?p=6&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics - VPN issue</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#3635231</link><pubDate>Sun, 01 Jul 2007 06:15:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3635231</guid><dc:creator>Hank</dc:creator><description>&lt;p&gt;Great post!&lt;/p&gt;
&lt;p&gt;I've read through much of this and haven't seen anything that addresses my issue.&lt;/p&gt;
&lt;p&gt;I'm trying to connect to another network via VPN and use resources there (https: and sharepoint websites in particular). My local PC is not known to the domains I reach through the VPN, so I can't log onto my local PC with a remote Windows account. I start the VPN client, enter my remote credentials and I get in. But once there, I can not get remote websites to honor my remote credentials. I've tried starting IE via runas with the remote credentials, but it doesn't make any difference. IE just hangs, showing &amp;quot;opening page ...&amp;quot; on the bottom left. Any ideas? Thanks&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#4900371</link><pubDate>Fri, 14 Sep 2007 00:14:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4900371</guid><dc:creator>David Shawn</dc:creator><description>&lt;p&gt;There is a tool &amp;quot;admintoolslauncher&amp;quot; which centralizes most of the adminstrative tasks under one application. One single log-in with administrative rights and you can launch all tools from one pool. It is limited to all windwos os before Vista. It can be found in this blog: &lt;a rel="nofollow" target="_new" href="http://www.stackenbloggen.de/PermaLink,guid,3406fa39-d95e-4ee3-bd64-7f55870b26ff.aspx"&gt;http://www.stackenbloggen.de/PermaLink,guid,3406fa39-d95e-4ee3-bd64-7f55870b26ff.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#5035810</link><pubDate>Fri, 21 Sep 2007 20:04:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5035810</guid><dc:creator>Tom Newby</dc:creator><description>&lt;P&gt;I needed to cause a domain replication to happen from a script:&lt;/P&gt;
&lt;P&gt;Here is how I did it....&lt;/P&gt;
&lt;P&gt;Set WshShell = CreateObject("WScript.Shell")&lt;/P&gt;
&lt;P&gt;WshShell.run "runas /user:domain\username /noprofile ""repadmin /syncall ldap.domain.com"""&lt;/P&gt;
&lt;P&gt;Wscript.sleep 2000&lt;/P&gt;
&lt;P&gt;WshShell.SendKeys "password{ENTER}"&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis] Risks:&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;Malicious person or software gets your script -- password exposed.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Try to run this on someone else's system (e.g., via startup/logon script) -- password easily exposed&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Assumes that the "runas" window gets focus and keeps focus for at least two seconds.&amp;nbsp; (See previous bullet -- if I switch to Notepad, the password will be entered into Notepad.)&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;If you're launching it interactively (i.e., you're present at the time) you're a lot safer just entering the password at the console.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#5036631</link><pubDate>Fri, 21 Sep 2007 20:45:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5036631</guid><dc:creator>Tom Newby</dc:creator><description>&lt;P&gt;Yes Aaron, all those things are true, but after encrypting the file to a .vbe, The password is no longer exposed. As far as losing focus shorten the time, and be aware it could happen. &lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis] But it will be decrypted in the user's context, and then be available to the user in the clear.&amp;nbsp; (Perhaps not as easy for most users to get to, but it's still there for them.)&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#5850232</link><pubDate>Sat, 03 Nov 2007 06:16:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5850232</guid><dc:creator>Redearl</dc:creator><description>&lt;p&gt;I use Runas allot, with various usernames, and domains.&lt;/p&gt;
&lt;p&gt;There is a limit on the number of domain\usernames that can be stored in the list.&lt;/p&gt;
&lt;p&gt;How do i flush the domain\username cache?&lt;/p&gt;
</description></item><item><title>"RunAs" and Windows Defender - can't make it work</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#6120421</link><pubDate>Mon, 12 Nov 2007 02:40:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6120421</guid><dc:creator>Frank Denman</dc:creator><description>&lt;p&gt;On an XP SP2 box, logged in as LUA, when I try to launch the Windows Defender ui using runas administrator, I get &amp;nbsp;the error:&lt;/p&gt;
&lt;p&gt;&amp;quot;Application failed to initialize. 0x80070005. Access is denied.&amp;quot;&lt;/p&gt;
&lt;p&gt;Any thoughts for a work-around?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#7127909</link><pubDate>Wed, 16 Jan 2008 10:46:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7127909</guid><dc:creator>Happy user</dc:creator><description>&lt;p&gt;All this effort to try an impersonate a tool that linux has always had and just works. &amp;nbsp;Why don&amp;#180;t you all start making the switch to linux. &amp;nbsp;Eventually you will all be much happier people.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#7686647</link><pubDate>Thu, 14 Feb 2008 08:53:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7686647</guid><dc:creator>Lahens</dc:creator><description>&lt;p&gt;Hi friends,&lt;/p&gt;
&lt;p&gt; I have one problem, my system is on network and I can access internet if I run firefox or IE as different user. I do that with “runas”,&lt;/p&gt;
&lt;p&gt; It runs fine for couple of minutes but after that it starts running as login user… please help&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Lahens&lt;/p&gt;
</description></item><item><title>RunAs Shell Explorer Extensions...</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#7905177</link><pubDate>Tue, 26 Feb 2008 18:03:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7905177</guid><dc:creator>Christopher Oezbek</dc:creator><description>&lt;p&gt;I improved Hendrik's work on a RunAs Shell Explorer extension by adding an option for MSI files and making the dialog pause if you enter the password incorrectly.&lt;/p&gt;
&lt;p&gt;Note: You need to change the user to match your user.&lt;/p&gt;
&lt;p&gt;Thanks for this page Aaron!&lt;/p&gt;
&lt;p&gt;Windows Registry Editor Version 5.00&lt;/p&gt;
&lt;p&gt;; %SystemRoot%\system32\cmd.exe /C &amp;quot;%SystemRoot%\system32\runas.exe /user:PCPOOL\adm_oezbek &amp;quot;%L&amp;quot; | pause&amp;quot;&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\Run as Admin...\command]&lt;/p&gt;
&lt;p&gt;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,53,00,79,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,6e,00,61,00,73,00,2e,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,65,00,78,00,65,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,50,00,43,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;50,00,4f,00,4f,00,4c,00,5c,00,61,00,64,00,6d,00,5f,00,6f,00,65,00,7a,00,62,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,65,00,6b,00,20,00,22,00,25,00,4c,00,22,00,20,00,7c,00,7c,00,20,00,70,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;61,00,75,00,73,00,65,00,22,00,00,00&lt;/p&gt;
&lt;p&gt; &amp;nbsp;; %SystemRoot%\system32\cmd.exe /C &amp;quot;%SystemRoot%\system32\runas.exe /user:PCPOOL\adm_oezbek &amp;quot;%L&amp;quot; | pause&amp;quot;&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\Run as Admin...\command]&lt;/p&gt;
&lt;p&gt;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,53,00,79,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,6e,00,61,00,73,00,2e,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,65,00,78,00,65,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,50,00,43,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;50,00,4f,00,4f,00,4c,00,5c,00,61,00,64,00,6d,00,5f,00,6f,00,65,00,7a,00,62,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,65,00,6b,00,20,00,22,00,25,00,4c,00,22,00,20,00,7c,00,7c,00,20,00,70,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;61,00,75,00,73,00,65,00,22,00,00,00&lt;/p&gt;
&lt;p&gt;; %SystemRoot%\system32\cmd.exe /C &amp;quot;%SystemRoot%\system32\runas.exe /user:PCPOOL\adm_oezbek &amp;quot;%SystemRoot%\system32\msiexec.exe /i \&amp;quot;%L\&amp;quot;&amp;quot; | pause&amp;quot;&lt;/p&gt;
&lt;p&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Msi.Package\shell\Run as Admin...\command]&lt;/p&gt;
&lt;p&gt;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,53,00,79,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,6e,00,61,00,73,00,2e,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,65,00,78,00,65,00,20,00,2f,00,75,00,73,00,65,00,72,00,3a,00,50,00,43,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;50,00,4f,00,4f,00,4c,00,5c,00,61,00,64,00,6d,00,5f,00,6f,00,65,00,7a,00,62,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,65,00,6b,00,20,00,22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,5c,00,6d,00,73,00,69,00,65,00,78,00,65,00,63,00,2e,00,65,00,78,00,65,00,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;20,00,2f,00,69,00,20,00,5c,00,22,00,25,00,4c,00,5c,00,22,00,22,00,20,00,7c,\&lt;/p&gt;
&lt;p&gt; &amp;nbsp;00,20,00,70,00,61,00,75,00,73,00,65,00,22,00,00,00&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#8114895</link><pubDate>Sat, 08 Mar 2008 23:58:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8114895</guid><dc:creator>Marvin</dc:creator><description>&lt;P&gt;For all who search a runas solution on vista.&lt;/P&gt;
&lt;P&gt;runasspc on robotronic.de/runasspcEn.html&lt;/P&gt;
&lt;P&gt;can use it on vista like runas on xp.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; ... or see Sysinternals' new ShellRunAs utility:&amp;nbsp; &lt;/EM&gt;&lt;A href="http://technet.microsoft.com/en-us/sysinternals/cc300361.aspx"&gt;&lt;EM&gt;http://technet.microsoft.com/en-us/sysinternals/cc300361.aspx&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#8293618</link><pubDate>Mon, 17 Mar 2008 21:42:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8293618</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Is there a way to bring up the GUI runas prompt from the command line? &amp;nbsp;I know this sound strange but hear me out... We have a program that has an inventory of our servers and I can make a right-click item for each server to run a command. &amp;nbsp;However there are multiple domain/workgroup for different servers. &amp;nbsp;Instead of having to create a separate item for each possible login we could use (based on what server we select), is there anyway to just make the command (exe or dll) bring up the runas gui for any given executable? &amp;nbsp;The command line version of runas will prompt for a password, but not for user name and password.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#8514905</link><pubDate>Fri, 16 May 2008 23:33:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8514905</guid><dc:creator>Docfxit</dc:creator><description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to start a bat file from the network. I'm getting an error saying:&lt;/P&gt;
&lt;P&gt;Enter the password for ATUUSER4\Administrator:&lt;/P&gt;
&lt;P&gt;Attempting to start C:\Batch\MAKEME~1.CMD " as user "ATUUSER4\Administrator" ...&lt;/P&gt;
&lt;P&gt;RUNAS ERROR: Unable to run - C:\Batch\MAKEME~1.CMD "&lt;/P&gt;
&lt;P&gt;5: Access is denied.&lt;/P&gt;
&lt;P&gt;Any ideas what could be wrong?&lt;/P&gt;
&lt;P&gt;XP Pro Sp2&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis] Did you modify MakeMeAdmin.cmd to have it try to run something else other than CMD.EXE?&amp;nbsp; You say you're trying to start a bat file from the network, but you're indicating MakeMeAdmin.cmd on the C: drive.&amp;nbsp; Where does the network come into play?&amp;nbsp; Also:&amp;nbsp; is ATUUSER4 the name of the computer, or is it a user name?&amp;nbsp; Do both&amp;nbsp;the non-admin user and the administrator have permissions to read the files in the C:\Batch\ folder?&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>Run Control Panel as Administrator</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#8853275</link><pubDate>Tue, 12 Aug 2008 22:56:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8853275</guid><dc:creator>Vaclav</dc:creator><description>&lt;p&gt;How to run Control Panel as Administrator in Windows XP:&lt;/p&gt;
&lt;p&gt;runas.exe /u:Administrator &amp;quot;explorer /separate,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}&amp;quot;&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9012817</link><pubDate>Thu, 23 Oct 2008 14:02:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9012817</guid><dc:creator>Alexander</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;There is a really nice app called Advanced Run (&lt;a rel="nofollow" target="_new" href="http://www.ilyns.com/advanced-run.asp"&gt;http://www.ilyns.com/advanced-run.asp&lt;/a&gt;). This is a great alternative for a standard Windows Run dialog box. You are able to specify user credentials to run whatever command you need. You are able to open documents with ‘Advanced Run…’ context menu item. You are able to specify Shell Verbs to perform advanced actions over the document you work with. Command templates and shortcuts are really great features that allow user to increase his performance by automating frequently actions. Furthermore, there is a possibility to share settings over a local network. Personally I believe people need such a great program because it’s not convenient and not flexible to use RUNAS command and other alternates such as Sudo for Windows are not such user friendly and powerful. Check it out!&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9031693</link><pubDate>Mon, 03 Nov 2008 10:24:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9031693</guid><dc:creator>Vimal</dc:creator><description>&lt;p&gt;use the utility in the above link to run explorer with different user account in ur machine&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9031699</link><pubDate>Mon, 03 Nov 2008 10:25:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9031699</guid><dc:creator>vimal</dc:creator><description>&lt;p&gt;use the utility in the below link to run explorer with different user account in ur machine&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://simplytoknow.blogspot.com/2008/11/run-windows-explorer-as-another-user.html"&gt;http://simplytoknow.blogspot.com/2008/11/run-windows-explorer-as-another-user.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9249734</link><pubDate>Tue, 23 Dec 2008 13:59:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9249734</guid><dc:creator>feralber</dc:creator><description>&lt;p&gt;Very useful information. Thanks a lot&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9459953</link><pubDate>Thu, 05 Mar 2009 18:23:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9459953</guid><dc:creator>Karl</dc:creator><description>&lt;P&gt;*******************************&lt;/P&gt;
&lt;P&gt;******** Temp Solution ********&lt;/P&gt;
&lt;P&gt;*******************************&lt;/P&gt;
&lt;P&gt;Thank you for above discussion and brief summariztion to run id/pwd in cmd:&lt;/P&gt;
&lt;P&gt;1. cmd "runas" CANNOT do this&lt;/P&gt;
&lt;P&gt;2. need VB or C &lt;/P&gt;
&lt;P&gt;3. need install 3-party software&lt;/P&gt;
&lt;P&gt;Luckily found PsTools v2.44 By Mark Russinovich (thanks!!) and tested whole day - pretty good and easy to use!!&lt;/P&gt;
&lt;P&gt;1. Accept ID/Pwd in script. No more keyboard.&lt;/P&gt;
&lt;P&gt;2. No need install in other client PC(s)&lt;/P&gt;
&lt;P&gt;3. Suitable to W2K, XP, 2003&lt;/P&gt;
&lt;P&gt;4. Slient to users. Run at backend.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx" rel=nofollow target=_new&gt;http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Happy Sharing and enjoy. :)&lt;/P&gt;
&lt;P&gt;Karl&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; Yes, but remember that if you put this in a script, in order for your users to run it, they need to be able to read the script.&amp;nbsp; Putting admin passwords in plain text script files is generally considered not so great from a security perspective.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9467553</link><pubDate>Mon, 09 Mar 2009 11:41:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9467553</guid><dc:creator>jack</dc:creator><description>&lt;p&gt;Please, post the ie.cmd lines here on blog also. Old link is not working.&lt;/p&gt;
</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9512301</link><pubDate>Fri, 27 Mar 2009 02:07:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9512301</guid><dc:creator>Keith</dc:creator><description>&lt;p&gt;Okay. &amp;nbsp;I am not sure if this would be considered basic OR intermediate for that matter but here is my problem and I hope someone can help.&lt;/p&gt;
&lt;p&gt;First things first I !cannot! run any third party programs NOR can I do any reg hacks as the guidelines of my position strictly prohibit them.&lt;/p&gt;
&lt;p&gt;I am working with Windows Vista and have the dissappearing Control Panel issue which requires the Software Licensing and SL UI Notification Service to be restarted. &amp;nbsp;I wanted to make this easy objectivly that has not happened.&lt;/p&gt;
&lt;p&gt;All computers are Local only there is no domain.&lt;/p&gt;
&lt;p&gt;All computers have had a user added that is an Admin, as part of the trial process, whether or not this is needed I do not know.&lt;/p&gt;
&lt;p&gt;The problem I am running into is when I am trying to elevate inside of CMD.EXE the account is still not granted the right to run the required NET STOP/START to disable and reenable the services.&lt;/p&gt;
&lt;p&gt;I was looking at the /trustlevel switch but the only level I can find is 0x20000 which is the basic user. &amp;nbsp;I need to run CMD.EXE at the administrative level to enable the ability to run the NET STOP/START that is required.&lt;/p&gt;
&lt;p&gt;I cannot Turn off UAC either by the way, lucky me right?&lt;/p&gt;
</description></item><item><title>re: run ncpa.cpl as Administrator</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9527881</link><pubDate>Thu, 02 Apr 2009 00:20:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9527881</guid><dc:creator>Bob Bosco</dc:creator><description>&lt;p&gt;As with post #631638 above, I am also having trouble running the ncpa.cpl network applet as Administrator.&lt;/p&gt;
&lt;p&gt;I have the &amp;quot;Launch folder windows in a separate process&amp;quot; flag set for both the target Administrator account as well as my Limited User account, but it still won't work.&lt;/p&gt;
&lt;p&gt;The ncpa.cpl is the only applet that won't run as Admin... everything else works fine.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
</description></item><item><title>re: run ncpa.cpl as Administrator</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9863689</link><pubDate>Tue, 11 Aug 2009 04:27:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9863689</guid><dc:creator>Bob Bosco</dc:creator><description>&lt;p&gt;Wow, I posted that 4 months ago and still no answer... does anyone actually read these?&lt;/p&gt;</description></item><item><title>re: "RunAs" explorer.exe</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9875730</link><pubDate>Wed, 19 Aug 2009 19:28:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9875730</guid><dc:creator>Scott Radden</dc:creator><description>&lt;p&gt;I'm experiencing the Directory name is invalid error from the explorer shortcut. If i delete the start in %HOMEDRIVE%HOMEPATH% from the shortcut then the error goes away but explorer doesn't start.&lt;/p&gt;
&lt;p&gt;Any suggestions because i would really like to get this working.&lt;/p&gt;</description></item><item><title>re: "RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx#9894708</link><pubDate>Sun, 13 Sep 2009 22:51:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9894708</guid><dc:creator>Von Stein</dc:creator><description>&lt;p&gt;The tips are non-sense since they don't work with IE 7 and older.&lt;/p&gt;</description></item></channel></rss>