http://www.perlmonks.org?node_id=438350


in reply to Need windows system info

Using WMI will probably be your best approach. However, some information is not available or off by default.

cpan certainly will have lots of modules for you.

I've used IO::Socket and Sys::Hostname for Ip address, WMI for model, os info, etc. For network stats, netstat's output could be parsed for statistics.

For WMI, I've used Win32::OLE and Win32::OLE:Enum.

Hope this helps

I have posted some sample code in This node

.