Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. About to do open heart surgery on my new laptop. Could use some guidance.

About to do open heart surgery on my new laptop. Could use some guidance.

Scheduled Pinned Locked Moved The Lounge
linuxhelpquestion
21 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jsc42

    I found the following VBScript code (ARRGH!) for getting a product key. It seems to work, YMMV. It may help as a double check for some of the other ideas given in previous responses. My PC arrived with W10 and I immediately upgraded (?) to W11 as that had come out whilst the PC was in the post and it meant that I had nothing of my own on the PC to lose. I was fortunate as it was an in situ upgrade and it picked up the old key automatically, so didn't need the output from this code. To use, save as .vbs and just double click it.

    ' Get Windows Product Key
    ' From https://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/

    Set WshShell = CreateObject("WScript.Shell")
    MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

    Function ConvertToKey(Key)
    Const KeyOffset = 52
    i = 28
    Chars = "BCDFGHJKMPQRTVWXY2346789"
    Do
    Cur = 0
    x = 14
    Do
    Cur = Cur * 256
    Cur = Key(x + KeyOffset) + Cur
    Key(x + KeyOffset) = (Cur \ 24) And 255
    Cur = Cur Mod 24
    x = x -1
    Loop While x >= 0
    i = i -1
    KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
    If (((29 - i) Mod 6) = 0) And (i <> -1) Then
    i = i -1
    KeyOutput = "-" & KeyOutput
    End If
    Loop While i >= 0
    ConvertToKey = KeyOutput
    End Function

    H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #12

    Thanks. I use a tool to pull it out of the registry, but that works too. Nice to just use WSH. Hopefully though, the product key is on the case itself. It usually has been when I've received desktops. Edit: The last time I tried to install Win10 I had the product key (from the case of the machine) and it would not let me use it. I had to call support. They told me to choose "I don't have a product key" and that worked. It pulled it from UEFI.

    There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

    1 Reply Last reply
    0
    • H honey the codewitch

      I got a Samsung 990 Pro 2TB NVMe to replace the smaller lesser performing 1TB NVMe that ships with my new laptop (arriving tomorrow) The laptop comes with Win11 home, which is fine for my purposes, since I intend to dual boot and home is just for gaming at my sister's. Work is linux. The laptop has a 2nd NVMe slot, so my plan is to populate it with the 1 TB drive that ships with the PC, pop the 2TB in the primary, and then format/repartition the secondary into 2 500GB partitions, one of which will be linux, and the other half will be for downloads and pictures and stuff. The primary drive is for win11 and any games I want to play. Here's the issue: The Windows license. I essentially want to transfer my license and Windows 11 copy from my 1TB to my 2TB. Here's how a little bird told me I could do it: Log onto my microsoft account to associate my Windows license with my account. Swap out the system drive, install win 11, choosing "I don't have a product key" - then, if it doesn't activate by UEFI I should be able to sign in to my MS account and activate it that way or something? Wasn't real clear on that last bit. This is supposed to be a new feature with Win11. Does anyone know anything about this, or otherwise know how I can accomplish the above?

      There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

      C Offline
      C Offline
      Cp Coder
      wrote on last edited by
      #13

      When the manufacturer installs a new legal version of Windows, the machine gets registered with Microsoft. (The machine - not the drive!) It does not matter how you change the drive, or how many times your do a clean install, or how many times you do a re-image of the systems drive, as long as you install the same version of Windows (11 home edition) the installation will be activated as soon as the machine connects to the Internet for the first time. I don't bother with cloning. I get rid of the bloated junk that ships with the machine by doing a clean install. Windows will be activated immediately. At least this has always worked on my Dell computers.

      Ok, I have had my coffee, so you can all come out now!

      H 1 Reply Last reply
      0
      • C Cp Coder

        When the manufacturer installs a new legal version of Windows, the machine gets registered with Microsoft. (The machine - not the drive!) It does not matter how you change the drive, or how many times your do a clean install, or how many times you do a re-image of the systems drive, as long as you install the same version of Windows (11 home edition) the installation will be activated as soon as the machine connects to the Internet for the first time. I don't bother with cloning. I get rid of the bloated junk that ships with the machine by doing a clean install. Windows will be activated immediately. At least this has always worked on my Dell computers.

        Ok, I have had my coffee, so you can all come out now!

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #14

        Thank you for this!

        There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

        C 2 Replies Last reply
        0
        • H honey the codewitch

          Thank you for this!

          There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

          C Offline
          C Offline
          Cp Coder
          wrote on last edited by
          #15

          If you do a clean install on a NVMe drive: Be very aware of this issue. You may want to download the Intel Rapid Storage Drivers before you start: The Lounge[^]

          Ok, I have had my coffee, so you can all come out now!

          1 Reply Last reply
          0
          • H honey the codewitch

            I got a Samsung 990 Pro 2TB NVMe to replace the smaller lesser performing 1TB NVMe that ships with my new laptop (arriving tomorrow) The laptop comes with Win11 home, which is fine for my purposes, since I intend to dual boot and home is just for gaming at my sister's. Work is linux. The laptop has a 2nd NVMe slot, so my plan is to populate it with the 1 TB drive that ships with the PC, pop the 2TB in the primary, and then format/repartition the secondary into 2 500GB partitions, one of which will be linux, and the other half will be for downloads and pictures and stuff. The primary drive is for win11 and any games I want to play. Here's the issue: The Windows license. I essentially want to transfer my license and Windows 11 copy from my 1TB to my 2TB. Here's how a little bird told me I could do it: Log onto my microsoft account to associate my Windows license with my account. Swap out the system drive, install win 11, choosing "I don't have a product key" - then, if it doesn't activate by UEFI I should be able to sign in to my MS account and activate it that way or something? Wasn't real clear on that last bit. This is supposed to be a new feature with Win11. Does anyone know anything about this, or otherwise know how I can accomplish the above?

            There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

            S Offline
            S Offline
            Storm blade
            wrote on last edited by
            #16

            Make sure you update the firmware in your new SSD, in case it is affected by this[^].

            H 1 Reply Last reply
            0
            • S Storm blade

              Make sure you update the firmware in your new SSD, in case it is affected by this[^].

              H Offline
              H Offline
              honey the codewitch
              wrote on last edited by
              #17

              Yeah, I've been on top of that, and been lucky besides.

              There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

              1 Reply Last reply
              0
              • H honey the codewitch

                Thank you for this!

                There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

                C Offline
                C Offline
                Cp Coder
                wrote on last edited by
                #18

                To be on the safe side: When you get the new machine, before you change anyting: Create an administrator account for yourself. It is probably better to tell Microsoft that you are now the owner of the new machine?

                Ok, I have had my coffee, so you can all come out now!

                H 1 Reply Last reply
                0
                • C Cp Coder

                  To be on the safe side: When you get the new machine, before you change anyting: Create an administrator account for yourself. It is probably better to tell Microsoft that you are now the owner of the new machine?

                  Ok, I have had my coffee, so you can all come out now!

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #19

                  I'm told logging into my microsoft account will connect it. But here on the forums I've also been told the license that ships with a PC is associated with *that PC* and presumably as long as you don't change too much hardware it will still function such that it can pull the license from the internet or something and reactivate windows with the new system drive. Adding, I will be logging into my MS account on that laptop as my first order of business.

                  There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

                  1 Reply Last reply
                  0
                  • H honey the codewitch

                    I got a Samsung 990 Pro 2TB NVMe to replace the smaller lesser performing 1TB NVMe that ships with my new laptop (arriving tomorrow) The laptop comes with Win11 home, which is fine for my purposes, since I intend to dual boot and home is just for gaming at my sister's. Work is linux. The laptop has a 2nd NVMe slot, so my plan is to populate it with the 1 TB drive that ships with the PC, pop the 2TB in the primary, and then format/repartition the secondary into 2 500GB partitions, one of which will be linux, and the other half will be for downloads and pictures and stuff. The primary drive is for win11 and any games I want to play. Here's the issue: The Windows license. I essentially want to transfer my license and Windows 11 copy from my 1TB to my 2TB. Here's how a little bird told me I could do it: Log onto my microsoft account to associate my Windows license with my account. Swap out the system drive, install win 11, choosing "I don't have a product key" - then, if it doesn't activate by UEFI I should be able to sign in to my MS account and activate it that way or something? Wasn't real clear on that last bit. This is supposed to be a new feature with Win11. Does anyone know anything about this, or otherwise know how I can accomplish the above?

                    There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

                    K Offline
                    K Offline
                    Kate X257
                    wrote on last edited by
                    #20

                    The easiest way to achieve this, is to fully setup the laptop as-is, and tie it to your main Microsoft account, confirming the device is listed online as one of your devices. After that, create a Windows recovery stick and swap the SSD. The license recovery only works if you have completed setup AND online activation of the system. You can tie (and implicitly upgrade to new T.O.S.) a license it to your main Microsoft account starting from Windows 10. Theoretically, one could even purchase a Windows 7 Pro key and install it to a VM on an OEM device with Linux, upgrade the image to Windows 8.1 while cloning the disk to the actual system before upgrading the key, and then upgrade that to Windows 10 Pro and tie it to your account. Due to the nitty-gritty details of the license agreements, it's technically not covered in the agreement. Again, completely theoretically, because you can't buy official Windows 7 Pro keys anymore, anywhere. *wink wink*

                    1 Reply Last reply
                    0
                    • J jsc42

                      I found the following VBScript code (ARRGH!) for getting a product key. It seems to work, YMMV. It may help as a double check for some of the other ideas given in previous responses. My PC arrived with W10 and I immediately upgraded (?) to W11 as that had come out whilst the PC was in the post and it meant that I had nothing of my own on the PC to lose. I was fortunate as it was an in situ upgrade and it picked up the old key automatically, so didn't need the output from this code. To use, save as .vbs and just double click it.

                      ' Get Windows Product Key
                      ' From https://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/

                      Set WshShell = CreateObject("WScript.Shell")
                      MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

                      Function ConvertToKey(Key)
                      Const KeyOffset = 52
                      i = 28
                      Chars = "BCDFGHJKMPQRTVWXY2346789"
                      Do
                      Cur = 0
                      x = 14
                      Do
                      Cur = Cur * 256
                      Cur = Key(x + KeyOffset) + Cur
                      Key(x + KeyOffset) = (Cur \ 24) And 255
                      Cur = Cur Mod 24
                      x = x -1
                      Loop While x >= 0
                      i = i -1
                      KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
                      If (((29 - i) Mod 6) = 0) And (i <> -1) Then
                      i = i -1
                      KeyOutput = "-" & KeyOutput
                      End If
                      Loop While i >= 0
                      ConvertToKey = KeyOutput
                      End Function

                      D Offline
                      D Offline
                      decaffeinatedMonkey
                      wrote on last edited by
                      #21

                      That script brings back nightmares. Makes me realize how easy hackers could spin up COM objects to do anything via a malicious website.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups