• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Automatic assignment of Images based of Product Key

Scheduled Pinned Locked Moved
General
3
6
589
Loading More Posts
  • 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.
  • Z
    zaboxmaster
    last edited by Mar 12, 2020, 7:14 AM

    Good day

    I am looking to automate the deployment based on the license key extracted.

    I currently extract the Windows license key from the BIOS, then use 3rd party tools such as ShowKeyPlus or PID checker to determine the OS version needed for the install. I then assign the OS version to the host and deploy.

    What I wanted to know is it possible to extract the license key and determine the image to be assigned to the host automatically without the manual process of using 3rd party software applications?

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Mar 12, 2020, 9:13 AM

      @zaboxmaster From what you write it sounds as if you are using FOG as a “image once and forget” kind of solution. Do you actually register the machines or do you use the image deploy directly from the FOG menu?

      What kind of tool do you use to extract the key from the BIOS? Depending on the tools used to extract and check OS version being available as Linux command line tools you might be able to automate this process.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      Z 1 Reply Last reply Mar 12, 2020, 7:39 PM Reply Quote 0
      • Z
        zaboxmaster @Sebastian Roth
        last edited by zaboxmaster Mar 12, 2020, 1:41 PM Mar 12, 2020, 7:39 PM

        @Sebastian-Roth You would be correct in the approach . Its an image once then forget. I am not using any tool to extract just a command which assigns the value to a variable and prints it out.

        I then manually input the product key into a third party tool.

        Do you know of any tools that could do the trick ?

        Yes I do a full registration of the host then deploy .

        G 1 Reply Last reply Mar 12, 2020, 8:36 PM Reply Quote 0
        • G
          george1421 Moderator @zaboxmaster
          last edited by george1421 Mar 12, 2020, 2:36 PM Mar 12, 2020, 8:36 PM

          @zaboxmaster Conceptually speaking its possible to extract a bios key and then update the unattend.xml file with that key so the system activated. There is no way that I know of that key 123 is for OS Win8 and key 345 is for Win10. The only group that can tell you that is MicroSoft.

          Recently I was looking through the FOG Project code and I recognized this line: https://github.com/FOGProject/fos/blob/master/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.auto.reg#L70 That might be the link to extract the product key from SMBIOS. If someone might couple that with a fog post install script: https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection/50?_=1584044949796 They could get near touchless system activation. But that still wouldn’t get you the os detection. Understand some of these actions may be against the intent of the MS EULA. So I’m only talking about the concepts of not the action there of.

          Since it appears that you are functioning as an MSP or system rebuilder there is a process that I call “Load and Go”, where you pick the deploy image ipxe menu select the image and then deploy the image to the target computer. In this method you don’t register the computer because once its imaged FOG will never see the computer again. This load and go approach makes it a bit quicker to image the machine. Postinstall scripts are run to name the machine if necessary or do other post imaging cleanup.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          Z 1 Reply Last reply Mar 19, 2020, 7:48 AM Reply Quote 0
          • Z
            zaboxmaster @george1421
            last edited by Mar 19, 2020, 7:48 AM

            @george1421 Just thinking out of the box here, and I understand I might be barking up the wrong tree, but could something like this work ?

            https://linux.die.net/man/1/hivexsh

            Would it then be possible to install this in fog and use this a function ?

            As from there I should be able to pull the Windows version out from the registry, in theory.

            As I have said before I am still learning .

            G 1 Reply Last reply Mar 19, 2020, 9:45 AM Reply Quote 0
            • G
              george1421 Moderator @zaboxmaster
              last edited by george1421 Mar 19, 2020, 3:46 AM Mar 19, 2020, 9:45 AM

              @zaboxmaster That command is surely possible if the existing hard drive contents are available. My previous post was only considering a bare metal install where there was no previous windows install to reference. If you have access to the previous disk content and it matches the smbios key then it makes things a bit easier.

              If you look at this post for a post install script example you will see a command that is already built into FOS linux called reged https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection/57 In this example I’m poking a value into the registry. While I haven’t looked it may be possible to read with reged too. As for hivesh it could be added if the source code could be found. It could be integrated into FOS Linux. It might take a little work, but its possible if that IS the solution.

              edit: man page for reged http://manpages.ubuntu.com/manpages/bionic/man8/reged.8.html

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post

              147

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project