title: Python: How to start a process with Administrator Permissions?
body: <p>I am starting the following script from a Windows 7 command line with administrator permissions:</p>
  
  <pre><code>import win32com.client
  import time
  import SendKeys
  import os
  from ctypes import *
  
  shell = win32com.client.Dispatch("WScript.Shell")
  
  os.startfile("C:\...exe")
  </code></pre>
  
  <p>I have also assigned the feature 'Run this programme as an administrator' to python.exe under Properties > Compatibility > Privilege Level. This did not change anything.</p>
  
  <p>The programme still behaves differently when opened this way to how it behaves when I just open it via a double click on screen. Am I missing some important bit here? Will the process invoked in this way not be run as if started with administrator privileges?</p>
  
  <p>Thanks for your help in advance!</p>
  
  <p>Cheers -</p>
  
  <p>Pat</p>