title: How to run program with Admin privs inside a batch/cmd file (no runas, no psexec allowed if password required)?
body: <p>There's a program called <strong>MBRfix</strong> by Kåre Smith in Norway. It must be run with ADMIN privileges, and it requires multiple parameters... so, a user <strong>cannot</strong> simply right-click on it and choose &quot;Run as administrator&quot;!</p>
  <p>In order to use this program to help very inept users (like many old, first-time computer users with Windows 10, or 8 or 7), I need to create a batch/cmd file for them to simply click on and run; or at the most, right-click on and choose &quot;Run as administrator&quot;. But if I do that with this batch file:</p>
  <pre><code>@echo off
  echo.
  MBRFIX.EXE /drive 0 savembr Disk0MBR
  echo.
  echo.
  pause
  </code></pre>
  <p>It always comes back with: &quot; 'MBRFIX.EXE' is not recognized as an internal or external command,
  operable program or batch file.&quot; (I've used both .bat and .cmd files, and in fact, it doesn't matter if you have any parameters/arguments at all, Win 10 simply will not run any program as ADMIN from inside a batch file like this!)</p>
  <p>I am working on coding my own program to open the Win UAC and ask user to run as ADMIN with built-in commands... <strong>But</strong> that will be very tedious compared to using Kåre's ready to go program.</p>
  <p>The reason neither &quot;runas&quot; nor &quot;psexec&quot; can be used is: They both require an ADMIN account with a login password... Well, my PC does not have one (on purpose) and neither do many other users who've had their PCs set up with good security (or, they were never set up as ADMIN).</p>
  <p>So, is this possible?  Or must we either school the inept user on how to open an ADMIN command prompt window (or PowerShell window) and use specific commands to navigate and parameters from a webpage or email in order to finally use mbrfix.</p>
  <p>Dan, TheStarman.</p>