Advertisement
Urworstnit3m3r

User-Backup-elevated-rights

Nov 2nd, 2015
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  'Normally this and the User-Backup.vbs are placed on the desktop then ran so if you run it from another location, alter the file path
  2. Set objShell = CreateObject("Shell.Application")
  3.  Set objNet = CreateObject("WScript.NetWork")
  4.  userName=objNet.UserName
  5.  objShell.ShellExecute "cscript", "C:\Users\" & userName & "\Desktop\User-Backup.vbs", "", "runas", 1
  6.  Set objShell = nothing
  7.  Set objNet = nothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement