PowerShell Device Report

The following PowerShell script generates a PowerShell device report which lists various details of the machine on which it is executed. These details include information such as installed drives, printers, RAM and software. The code also allows you to optionally export the device report as an .xml file.

The .ps1 code is presented below; The code has been tested and works on Windows 10/11.