October 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

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"