This is a simple powershell script to query and display hardware and OS information from a remote computer.
It uses CIM (Common Information Model) that is available since Powershell version 3 so as long as you have version 3 and up, you should be able to run this script against any server that you have access to.
And if you are running powershell version lower than 3, you could simply replace "Get-CimInstance -ClassName" with "Get-WmiObject" in this script and it should work without a hitch.