Advertisement
Stewie410

getpcinfo

Feb 2nd, 2018
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.27 KB | None | 0 0
  1. @echo off
  2. pushd %~dp0
  3.  
  4. :: Create a temp drive letter mapped to your UNC root location
  5. :: and effectively CD to that direction
  6. pushd \\10.20.30.20\Departments\General\Applications\Scripts\VBS
  7.  
  8. :: Pull Adobe Acrobat <ver> serial from reg
  9. :: To cover all the bases, we're looking for v7-11 ...
  10. :: Though, still may need to use Belarc Advisor if this doesn't work out
  11. reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\9.0\Registration\SERIAL" AA7Key.txt
  12. reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\9.0\Registration\SERIAL" AA8Key.txt
  13. reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\9.0\Registration\SERIAL" AA9Key.txt
  14. reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\10.0\Registration\SERIAL" AA10Key.txt
  15. reg export "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\11.0\Registration\SERIAL" AA11Key.txt
  16.  
  17. :: Pull PC info and organize it, incl above AAKey.txt files
  18. md %computername%
  19. cscript mskeys.vbs
  20. cscript pcinfo.vbs
  21. ::siw.exe /log=%computername%.html /all /silent /details /nologo
  22. WinAudit.exe /r=gsoPxuTUeERNtzDaIbMpmidcSArCOHG /f=fullAudit.html /T=date /l=log.txt /L=en
  23. ipconfig /all > ifconf.txt
  24. move *.html .\%computername%
  25. move *.txt %computername%
  26.  
  27. :: Remove the temp drive letter and return to your original location
  28. popd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement