Advertisement
Werezwolf

GPO - Startup - InventoryCheck

Mar 24th, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.70 KB | None | 0 0
  1. @ECHO OFF
  2. ::Set Record Location
  3. SET location=Z:/~Server/Logs/ComputerInventory
  4. ::Report
  5. mkdir %location%/%COMPUTERNAME%
  6. ::IPConfig
  7. ipconfig > %location%/%COMPUTERNAME%/ip.txt
  8. ::Programs - FILE NOT FOUND ERR can sometimes be reported altho script still works (Win7 Bug)
  9. where /R "C:\Program Files (x86)" *.exe /T > %location%\%COMPUTERNAME%\Programsx86.txt
  10. where /R "C:\Program Files" *.exe /T > %location%\%COMPUTERNAME%\Programs.txt
  11. ::Longest Runtime reports
  12. ECHO "Computer Report to Server"
  13. ECHO "Netstat"
  14. netstat -abo > %location%/%COMPUTERNAME%/netstat.txt
  15. ECHO "Msinfo32"
  16. msinfo32 /report %location%/%COMPUTERNAME%/msinfo32.txt
  17. ECHO "Defrag"
  18. defrag /A /C /V > %location%/%COMPUTERNAME%/defrag.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement