

$SerialNumber = (Get-WmiObject -ComputerName $Server -Class Win32_Bios). $ServerManufacturer = $ServerInfo.Manufacturer $ServerInfo = Get-WmiObject -ComputerName $Server -Class Win32_ComputerSystem Hope this helps you and anwsers your questions.

The first character is the year date (Y) and the next two (WW), the week in that year it was made. $Hostname = (Get-WmiObject -Computername $Server Win32_ComputerSystem).Name For the serial number the typical format is to have the 4th, 5th, and 6th characters to reference when the product was built.

$ErrorActionPreference = "silentlycontinue" If you would like to get the serial number and model, launch a command prompt as administrator, then type in the following: wmic csproduct get name, identifyingnumber. This should display the serial number of the server. Once the command is executed, it will list Serial Number of your computer below SerialNumber entry on the Command Prompt screen (see above image). Launch Powershell as administrator, then type in the following: wmic bios get serialnumber. On the Command Prompt screen, type wmic bios get serialnumber and press the enter key on the keyboard of your computer. HelpMessage = 'Server Name or IP Address')] Right-click on the Start button and click on Command Prompt (Admin). Get the output of below commands from the media server. $entitlementAction = Invoke-SOAPRequest -SOAPRequest $entitlementSOAPRequest -URL '' -Action '' Login to those media servers wher you can find the drives are showiing the error. $entitlementSOAPRequest = ( Get-Content "$PSScriptRoot\EntitlementSOAPRequest.xml" ) ` This cmdlet can only be used with values from Hewlett-Packard systems." Throw "Computer Manufacturer is not of type Hewlett-Packard. $reg = Invoke-HPWarrantyRegistrationRequest -ComputerName $ComputerName ContainsKey ( 'Gdid' ) ) -or -not ( $PSBoundParameters. $ProductID = ( Get-WmiObject -Namespace root\WMI MS_SystemInformation -ComputerName $ComputerName -ErrorAction Stop ). $SerialNumber = ( Get-WmiObject -Class Win32_Bios -ComputerName $ComputerName -ErrorAction Stop ). If ( $manufacturer -eq "Hewlett-Packard" -or $manufacturer -eq "HP" ) $manufacturer = ( Get-WmiObject -Class Win32_ComputerSystem -Namespace "root\CIMV2" -Property "Manufacturer" -ComputerName $ComputerName -ErrorAction Stop ). and will get the serial number of your HDD. In command promt type wmic diskdrive get serialnumber and press enter. ParameterSetName -eq '_AllParameterSets' -or $PSCmdlet. Sure i will help you in find the serial number of you HDD, please follow below steps, If you are using Windows operating system: 1. Only one Registration Session needs to be established, the Gdid and Token can be reused for the Invoke-HPWarrantyLookup Cmdlet.įunction Invoke-HPWarrantyRegistrationRequest PS C:\> Invoke-HPWarrantyRegistrationRequest -SerialNumber ABCDE12345 -ProductModel "HP ProBook 645 G1"Ī valid serial number and computer model are required to establish the session. Token N0b2GQkmyM3CN23haBM6KSrnJ/VILMpnwwEjPFiuc8yQwDqtkig6Y1Z3j5Xyou2V4PTF1CbmxIljlZPCUaYjN/B4zDz3y8PugT2.
