Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- ::Set Record Location
- SET location=Z:/~Server/Logs/ComputerInventory
- ::Report
- mkdir %location%/%COMPUTERNAME%
- ::IPConfig
- ipconfig > %location%/%COMPUTERNAME%/ip.txt
- ::Programs - FILE NOT FOUND ERR can sometimes be reported altho script still works (Win7 Bug)
- where /R "C:\Program Files (x86)" *.exe /T > %location%\%COMPUTERNAME%\Programsx86.txt
- where /R "C:\Program Files" *.exe /T > %location%\%COMPUTERNAME%\Programs.txt
- ::Longest Runtime reports
- ECHO "Computer Report to Server"
- ECHO "Netstat"
- netstat -abo > %location%/%COMPUTERNAME%/netstat.txt
- ECHO "Msinfo32"
- msinfo32 /report %location%/%COMPUTERNAME%/msinfo32.txt
- ECHO "Defrag"
- defrag /A /C /V > %location%/%COMPUTERNAME%/defrag.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement