run a remote batch file as domain administrator
<p>I just inherited a new job that is so bad the last IT company just walked out after a few days.</p>

<p>I need to remotely do 20 things from a win 2012R2 server, but I can't get to step one yet. I can't seem to get the syntax down. I want to put a simple batch file on the public share F: and run it as full administrator rights.</p>

<p>INSIDE OF THE DOMAIN LOGIN SCRIPT:</p>

<pre><code>Set oShell = WScript.CreateObject("WSCript.shell")
oShell.run "f:\psexec \\* -u BW\administrator -p PaSSw0rd F:\adddomainuser.bat"
</code></pre>

<p>THIS IS THE CONTENTS OF <code>F:\adddomainuser.bat</code></p>

<pre><code>net localgroup administrators "BW\Domain Users" /add
</code></pre>