title: How to Start Windows Service As Administrator Privileges
body: <p>I have my own application server which is windows service who communicates with the sql server, in some cases sql server service is stop so I am stating that via this code </p>
  
  <pre><code>ServiceController sc = new ServiceController("MSSQL$SQLEXPRESS");
  sc.Start();
  sc.WaitForStatus(ServiceControllerStatus.Running);
  </code></pre>
  
  <p>but it requires administrator privileges to start service how can I start my window service as administrator </p>