8000 Get-ComputerInfo - fix typo in property name (#3167) · PowerShell/PowerShell@88c8be7 · GitHub
[go: up one dir, main page]

Skip to conten 8000 t

Commit 88c8be7

Browse files
iSazonovdaxian-dbw
authored andcommitted
Get-ComputerInfo - fix typo in property name (#3167)
1 parent 5a8fa57 commit 88c8be7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ private static ComputerInfo CreateFullOutputObject(SystemInfoGroup systemInfo, O
743743
output.BiosOtherTargetOS = bios.OtherTargetOS;
744744
output.BiosPrimaryBIOS = bios.PrimaryBIOS;
745745
output.BiosReleaseDate = bios.ReleaseDate;
746-
output.BiosSeralNumber = bios.SerialNumber;
746+
output.BiosSerialNumber = bios.SerialNumber;
747747
output.BiosSMBIOSBIOSVersion = bios.SMBIOSBIOSVersion;
748748
output.BiosSMBIOSMajorVersion = bios.SMBIOSMajorVersion;
749749
output.BiosSMBIOSMinorVersion = bios.SMBIOSMinorVersion;
@@ -2363,7 +2363,7 @@ public class ComputerInfo
23632363
/// <summary>
23642364
/// Assigned serial number of the BIOS
23652365
/// </summary>
2366-
public string BiosSeralNumber { get; internal set; }
2366+
public string BiosSerialNumber { get; internal set; }
23672367

23682368
/// <summary>
23692369
/// BIOS version as reported by SMBIOS

test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Get-PropertyNamesForComputerInfoTest
4747
"BiosOtherTargetOS",
4848
"BiosPrimaryBIOS",
4949
"BiosReleaseDate",
50-
"BiosSeralNumber",
50+
"BiosSerialNumber",
5151
"BiosSMBIOSBIOSVersion",
5252
"BiosSMBIOSPresent",
5353
"BiosSMBIOSMajorVersion",
@@ -794,7 +794,7 @@ public static extern int LCIDToLocaleName(uint localeID, System.Text.StringBuild
794794
"BiosOtherTargetOS" {return Get-CimClassPropVal Win32_bios OtherTargetOS}
795795
"BiosPrimaryBIOS" {return Get-CimClassPropVal Win32_bios PrimaryBIOS}
796796
"BiosReleaseDate" {return Get-CimClassPropVal Win32_bios ReleaseDate}
797-
"BiosSeralNumber" {return Get-CimClassPropVal Win32_bios SerialNumber}
797+
"BiosSerialNumber" {return Get-CimClassPropVal Win32_bios SerialNumber}
798798
"BiosSMBIOSBIOSVersion" {return Get-CimClassPropVal Win32_bios SMBIOSBIOSVersion}
799799
"BiosSMBIOSPresent" {return Get-CimClassPropVal Win32_bios SMBIOSPresent}
800800
"BiosSMBIOSMajorVersion" {return Get-CimClassPropVal Win32_bios SMBIOSMajorVersion}

0 commit comments

Comments
 (0)
0