I am retrieving computer information using the batch script below,
(
systeminfo | findstr /c:"Host Name" /c:"Domain" /c:"OS Name" /c:"OS Version" /c:"System Manufacturer" /c:"System Model" /c:"System type" /c:"Total Physical Memory" /c:"Available Physical Memory"
wmic bios get serialnumber
) > "getPCinfo.txt"
then result on the text file is
Host Name: Host
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.16299 N/A Build 16299
System Manufacturer: Dell Inc.
System Model: Latitude 7480
BIOS Version: Dell Inc. 1.7.3, 10/11/2017
Total Physical Memory: 8,077 MB
Available Physical Memory: 2,450 MB
Domain: Domain.Domain.Domain.net
S e r i a l N u m b e r
3 R K 5 M H 2
May I know how can I format the Serial Number into the same format as previous info as something like :-
S e r i a l N u m b e r : 3 R K 5 M H 2