Enable Remote Administration exception
The “remote administration exception” needs to be enabled for computers when the Windows Firewall is enabled. This exception opens TCP port 135.
Enable File and Printer sharing exception
The “File and Printer Sharing” exception must be enabled for computers. This exception opens TCP ports 139 and 445, and UDP ports 137 and 138.
The WMI Code Generator 7.03 tool is similar to Scriptomatic but even more powerful. It is a great tool to quickly learn and create WMI management scripts. WMI Code Generator can create code that can be run on the Local Computer, Remote computer or a group of remote computers, based on what you choose from the Target Computer menu.
Check it out at: http://www.robvanderwoude.com/wmigen.php
wmic computersystem get manufacturer
wmic computersystem get model
wmic csproduct get name,vendor,identifyingNumber
wmic diskdrive get name,size,model
wmic partition get name,bootable,size,type
wmic os list brief
You can also use the output switch: /output:”<filepath&name>”