Quote (NinjaSushi2 @ Feb 10 2014 03:31pm)
I know what some of that code means but not all. So why do you ping home? Or could you just break the VBS down line by line? Thanks.
I used ping as a sleep in that script. Batch doesn't have a real sleep instruction so there are a few ways around it, in this case using ping.
As for the VBS script, it simple writes
Code
Set UAC = CreateObject^("Shell.Application"^)
UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1
to a file named "OEgetPrivileges.vbs" located in the temp directory. > denotes writing/creating to the file as well as writing over everything if text already resides in it. >> denotes appending to the end of a file without destroying previous contents. From there it launches the script.
As for the actual VBS code, it creates a variable called UAC and initiates it with an object of type "shell application,", and from there tells it to execute itself with elevated permissions.