From 88c8be75f20566f32e8ddf39b8529f4b829b9fa2 Mon Sep 17 00:00:00 2001 From: Ilya Date: Sat, 18 Feb 2017 01:10:51 +0400 Subject: [PATCH] Get-ComputerInfo - fix typo in property name (#3167) --- .../commands/management/GetComputerInfoCommand.cs | 4 ++-- .../Get-ComputerInfo.Tests.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs index ce199791cd..99f52ac36c 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs @@ -743,7 +743,7 @@ namespace Microsoft.PowerShell.Commands output.BiosOtherTargetOS = bios.OtherTargetOS; output.BiosPrimaryBIOS = bios.PrimaryBIOS; output.BiosReleaseDate = bios.ReleaseDate; - output.BiosSeralNumber = bios.SerialNumber; + output.BiosSerialNumber = bios.SerialNumber; output.BiosSMBIOSBIOSVersion = bios.SMBIOSBIOSVersion; output.BiosSMBIOSMajorVersion = bios.SMBIOSMajorVersion; output.BiosSMBIOSMinorVersion = bios.SMBIOSMinorVersion; @@ -2363,7 +2363,7 @@ namespace Microsoft.PowerShell.Commands /// /// Assigned serial number of the BIOS /// - public string BiosSeralNumber { get; internal set; } + public string BiosSerialNumber { get; internal set; } /// /// BIOS version as reported by SMBIOS diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 index 2a0ee9a361..73f0073768 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 @@ -47,7 +47,7 @@ function Get-PropertyNamesForComputerInfoTest "BiosOtherTargetOS", "BiosPrimaryBIOS", "BiosReleaseDate", - "BiosSeralNumber", + "BiosSerialNumber", "BiosSMBIOSBIOSVersion", "BiosSMBIOSPresent", "BiosSMBIOSMajorVersion", @@ -794,7 +794,7 @@ public static extern int LCIDToLocaleName(uint localeID, System.Text.StringBuild "BiosOtherTargetOS" {return Get-CimClassPropVal Win32_bios OtherTargetOS} "BiosPrimaryBIOS" {return Get-CimClassPropVal Win32_bios PrimaryBIOS} "BiosReleaseDate" {return Get-CimClassPropVal Win32_bios ReleaseDate} - "BiosSeralNumber" {return Get-CimClassPropVal Win32_bios SerialNumber} + "BiosSerialNumber" {return Get-CimClassPropVal Win32_bios SerialNumber} "BiosSMBIOSBIOSVersion" {return Get-CimClassPropVal Win32_bios SMBIOSBIOSVersion} "BiosSMBIOSPresent" {return Get-CimClassPropVal Win32_bios SMBIOSPresent} "BiosSMBIOSMajorVersion" {return Get-CimClassPropVal Win32_bios SMBIOSMajorVersion}