Output machine model number


I recently had the need to output the machine model number to a share which would act as part of the asset tracking regime.

Below is the script which I created & saved as a .bat file then used GPO to run at computer startup.

WMIC CSPRODUCT GET NAME | Out-File "\\domain.local\share$\Client_Info\Student\$env:COMPUTERNAME-MODEL.txt"