Advertisement
Guest User

vbscript UAC

a guest
Oct 20th, 2013
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '/*
  2. ' * Start of UAC workaround code
  3. ' */
  4. If WScript.Arguments.length =0 Then
  5.     Set objShell = CreateObject("Shell.Application")
  6.  
  7.     objShell.ShellExecute "wscript.exe", Chr(34) & _
  8.     WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1
  9. Else
  10.     '/*
  11.     ' * Start of code
  12.     ' */
  13.  
  14. '*/
  15. ' * End of code
  16. ' * End of UAC workaround code
  17. ' */
  18. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement