Skip to content

Commit c361b89

Browse files
mjr4077auDanGough
authored andcommitted
Prepend Microsoft onto OperatingSystemInfo.Name object.
When grepping this data from the registry, it doesn't contain it unlike the old WMI code.
1 parent 36a26fa commit c361b89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PSADT/PSADT/DeviceManagement/OperatingSystemInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static bool IsOperatingSystemEnterpriseMultiSessionOS(OS_PRODUCT_TYPE productTyp
5454
ubr = ubrValue;
5555
}
5656
DisplayVersion = (string?)key.GetValue("DisplayVersion");
57-
productName = (string)key.GetValue("ProductName")!;
57+
productName = $"Microsoft {(string)key.GetValue("ProductName")!}";
5858
editionId = (string?)key.GetValue("EditionID");
5959
}
6060

0 commit comments

Comments
 (0)