title: running a batch file in a remote machine as an administrator
body: <p>I am having a virtual machine which i am using it as a server. I have my local machine as a client.</p>
  
  <p>I have a windows batch file in the virtual machine, a.k.a the server which has a series of command.</p>
  
  <p>I try to run the batch file from the client through psexec. I can access the file and execute the file. But not all the commands are executed. They need administrative privileges.</p>
  
  <p>The command that i use is </p>
  
  <p>psexec \virtualmachinename -s -u domainname\username -p PASSWORD c:\foldername\batchfile.bat</p>
  
  <p>NOTE 1: I cannot select the option of "Run as Administrator" in the properties of the batch file. The check box is grayed, that means i cannot select/deselect anything. </p>
  
  <p>NOTE 2: I have given the user of my virtual machine full administrative privileges.</p>
  
  <p>Any insight or possible solutions will be of great help. </p>