title: How to run vbs as administrator from vbs?
body: <p>Can anyone help me with running vbs from itself but with administrator rights?
  I need rename computer with Windows&nbsp;8 via VBScript, but it's possible only if I run my script through administrator command line (CMD&nbsp;&rarr; Run as Administrator&nbsp;&rarr; runScript.vbs). If I start script with classic CMD the computer isn't renamed.</p>
  
  <p>My idea is I start script with user rights, without parameters and if there is no parameter, the script re-runs itself with admin rights and with parameter as identificator "I'm admin".</p>
  
  <p>Does anyone know how I can do this?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I tried this:</p>
  
  <pre><code>If WScript.Arguments.Count = 0 Then
      Set objShell = CreateObject("Shell.Application")
      objShell.ShellExecute "wscript.exe", "c:\Users\admin\Documents\selfConfigure.vbs -1", "", runas", 1
  End If
  </code></pre>