Advertisement
westor

WMI Get for Korona v1.0

Oct 2nd, 2018
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.64 KB | None | 0 0
  1. alias wmiget {
  2.   var %ar = a $+ $ticks $+ $ctime $+ $rand(1,10000)
  3.   var %br = b $+ $ticks $+ $ctime $+ $rand(1,10000)
  4.   var %cr = c $+ $ticks $+ $ctime $+ $rand(1,10000)
  5.   .comopen %ar WbemScripting.SWbemLocator
  6.   if ($comerr) { .comclose %ar | return 0 }
  7.   .comclose %ar $com(%ar,ConnectServer,3,dispatch* %br)
  8.   if ($comerr) { return 0 }
  9.   .comclose %br $com(%br,ExecQuery,3,bstr*,select $prop from $1,dispatch* %cr)
  10.   var %x = $remove($comval(%cr,$iif($2,$2,1),$prop),$chr(9),$chr(10),$chr(13))
  11.   :error
  12.   if ($com(%ar)) { .comclose %ar }
  13.   if ($com(%br)) { .comclose %br }
  14.   if ($com(%cr)) { .comclose %cr }
  15.   return $iif(%x,%x,0)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement