Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: WMI and HP Product IDs

    An HP Product ID is related to the hardware SKU The plain-English way of getting the SKU is Get-WMIObject –ComputerName $computerName Win32_ComputerSystem However, our inventory system uses the HP product ID property stuffed in ILO.  As someone who uses the test lab, this isn’t something that I...
  • Blog Post: Pinging a Hostname with Timeout

    Well, that's simple: $ping = New-Object System.Net.NetworkInformation.Ping; [ bool ]( $ping .Send( $computer , $pingTimeout ).Status -ne 'Success' ); It gets more interesting when we need to verify that $computer is actually valid. We can use [System.Net.DNS]::GetHostAddresses(), but that emits...
Page 1 of 1 (2 items)