Skip to content

Commit 46e9273

Browse files
committed
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 173d51a commit 46e9273

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)