Open automatically python file as Administrator
<p>I want to use the third party module called "ping", <a href="https://pypi.python.org/pypi/python-ping/2011.10.17.376a019" rel="nofollow">found here</a></p>

<p>But it requires to open the file as "Administrator" in Windows.</p>

<p>I want it so every time the computer is started, to open this file as Administrator.
To open it, I just need to put the file in <code>shell:startup</code></p>

<p>But the issue is that I need to do it as Administrator.
How can I achieve my goal?</p>

<p>So there's this program called </p>

<blockquote>
  <p>Task Scheduler you can find it just by pressing start and searching
  "Task Scheduler"</p>
</blockquote>

<p><a href="http://i.stack.imgur.com/mOi8Z.png" rel="nofollow"><img src="http://i.stack.imgur.com/mOi8Z.png" alt="Looks like this."></a></p>

<blockquote>
  <p>So first you want to go to action then click create action.</p>
</blockquote>

<p><a href="http://i.stack.imgur.com/BDtUZ.png" rel="nofollow"><img src="http://i.stack.imgur.com/BDtUZ.png" alt="Should open a window that looks like this."></a></p>

<blockquote>
  <p>Go to triggers then select create new trigger configure it so it looks
  like this.</p>
</blockquote>

<p><a href="http://i.stack.imgur.com/sjnJV.png" rel="nofollow"><img src="http://i.stack.imgur.com/sjnJV.png" alt="Trigger"></a></p>

<p>Then Create a batch script for launching your python file.
Somthing like this.</p>

<pre><code>@echo off
python c:\somescript.py %*
pause
</code></pre>

<blockquote>
  <p>then go to action on the window and create a new action.
  <a href="http://i.stack.imgur.com/QcSPD.png" rel="nofollow"><img src="http://i.stack.imgur.com/QcSPD.png" alt="action page"></a></p>
  
  <p>last go to the main page configure it like this and click ok and done.
  <a href="http://i.stack.imgur.com/YNhpD.png" rel="nofollow"><img src="http://i.stack.imgur.com/YNhpD.png" alt="enter image description here"></a></p>
</blockquote>

python