News, tips, advice, support for Windows, Office, PCs & more. Tech help. No bull. We're community supported by donations from our Plus Members, and proud of it
Home icon Home icon Home icon Email icon RSS icon
  • Testers Needed

    Posted on RetiredGeek Comment on the AskWoody Lounge
    Viewing 2 reply threads
    • Author
      Posts
      • #2018282 Reply
        RetiredGeek
        AskWoody MVP

        Hey Y’all,

        I’m in need of someone with anΒ  Ice Lake processor and/or Comet Lake processor to run this code (I wish I had one but no such luck) and post the results back so I know if the logic is correct. Thanks

        # PowerShell to determine Code Name of installed CPU
        
          Clear-Host
          $CodeNames = @{2 = "Sandy Bridge"
                         3 = "Ivy Bridge"
                         4 = "Haswell"
                         5 = "Broadwell"
                         6 = "Sky Lake"
                         7 = "Kaby Lake"
                         8 = "Coffee Lake"
                         9 = "Ice Lake"
                        10 = "Comet Lake"}
        
          $CPU_Object = 
             Get-CimInstance -ClassName  'Win32_Processor'
        
          $Parts = $CPU_Object.Name.Split("-")
          $Parts2 = $Parts[1].Split(" ")
          If ($parts2[0].length -eq 4) {
            $Gen = $parts2[0].Substring(0,1)
          } 
          Else {$Gen = $Parts2[0].Substring(0,2)}
           "Processor Name: $($($CPU_Object).Name)"
           "Generation    : $Gen"
           "Code Name     : $($CodeNames[[Int]$($Gen)])"
        

        Output from my computer:

        Processor Name: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
        Generation    : 7
        Code Name     : Kaby Lake
        

        Thanks 😎

        May the Forces of good computing be with you!

        RG

        PowerShell & VBA Rule!
        Computer Specs

      • #2018313 Reply
        jayinalaska
        AskWoody Plus

        Hey Retired Geek,

        I have a Skylake Refresh chip (i7 9800X). This is the output I get:

        Processor Name: Intel(R) Core(TM) i7-9800X CPU @ 3.80GHz
        Generation : 9
        Code Name : Ice Lake

        I definitely don’t have an Ice Lake chip. According to Wikipedia (I know, not necessarily reliable), Ice Lake is an Intel 10th generation chip. Based on model numbers, so are Comet Lake chips. Finally, Wiki also says Coffee Lake chips are both 8th and 9th generation.

        Hope that helps.

        Jay

      • #2019079 Reply
        RetiredGeek
        AskWoody MVP

        Jay,

        Thanks for testing! The code is based on the first 1 or now 2 positionis of the chip after the dash thus you’re chip is a 9 or Ice Lake.

        Interestingly, this is what the Intel Arc site says:

        FormerlySkylake
        So is that like the Artist formerly known as?

        Not sure how to code this to work with the information from the Arc site being so vague.

        Thanks again for testing. 😎

        May the Forces of good computing be with you!

        RG

        PowerShell & VBA Rule!
        Computer Specs

        Attachments:
    Viewing 2 reply threads

    Please follow the -Lounge Rules- no personal attacks, no swearing, and politics/religion are relegated to the Rants forum.

    Reply To: Testers Needed

    You can use BBCodes to format your content.
    Your account can't use Advanced BBCodes, they will be stripped before saving.

    Cancel