Advertisement
prototypetoaster

Activity-02

Jan 17th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3. set outputfile=C:\Users\GR7NWD2\Downloads\CourseFiles\Activities\activity02-OUT.html
  4.  
  5. WMIC os GET localdatetime>"%outputfile%"
  6.  
  7. WMIC useraccount GET domain,name,description,status /format:htable>>"%outputfile%"
  8.  
  9. WMIC process GET HandleCount,Name,Priority,ProcessId,ThreadCount,WorkingSetSize /format:htable>>"%outputfile%"
  10.  
  11. WMIC service GET caption,creationclassname,description,displayname,pathname,processid,state /format:htable>>"%outputfile%"
  12.  
  13. WMIC nicconfig GET caption,description,dhcpenabled,ipaddress /format:htable>>"%outputfile%"
  14.  
  15. WMIC bios GET * /format:htable>>"%outputfile%"
  16.  
  17. WMIC cpu GET * /format:htable>>"%outputfile%"
  18.  
  19. WMIC memphysical GET * /format:htable>>"%outputfile%"
  20.  
  21. WMIC diskdrive GET * /format:htable>>"%outputfile%"
  22.  
  23. WMIC memorychip GET banklabel,caption,devicelocator,serialnumber /format:htable>>"%outputfile%"
  24.  
  25. wmic path win32_physicalmedia GET serialnumber,tag /format:htable>>"%outputfile%"
  26.  
  27. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement