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

Activate Windows 10 via FOG agent

Scheduled Pinned Locked Moved Solved
Windows Problems
5
18
1.8k
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.
  • K
    kralon @Sebastian Roth
    last edited by Sep 11, 2019, 1:59 PM

    @Sebastian-Roth fog.log Here is the full log from the client.

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sep 11, 2019, 3:16 PM

      @kralon Where did you see anything in the logs about HostnameChanger not being active?? All I see is:

      ------------------------------------------------------------------------------
      --------------------------------HostnameChanger-------------------------------
      ------------------------------------------------------------------------------
       11.09.2019 12:36 Client-Info Client Version: 0.11.16
       11.09.2019 12:36 Client-Info Client OS:      Windows
       11.09.2019 12:36 Client-Info Server Version: 1.5.7.2
       11.09.2019 12:36 Middleware::Response Success
       11.09.2019 12:36 HostnameChanger Checking Product Key Activation
       11.09.2019 12:36 HostnameChanger Windows has correct key but is not licensed
       11.09.2019 12:36 WinActivation Installing Product key
       11.09.2019 12:36 HostnameChanger Checking Hostname
       11.09.2019 12:36 HostnameChanger Hostname is correct
       11.09.2019 12:36 HostnameChanger Attempting to join domain
       11.09.2019 12:36 HostnameChanger Host already joined to target domain
      ------------------------------------------------------------------------------
      

      I am wondering about the message Windows has correct key but is not licensed but that doesn’t mean HostnameChanger module isn’t active!!

      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

      K 1 Reply Last reply Sep 13, 2019, 8:47 AM Reply Quote 0
      • K
        kralon @Sebastian Roth
        last edited by Sep 13, 2019, 8:47 AM

        @Sebastian-Roth I saw it when i first time read the log. Now its okay.
        But Windows still don´t active.

        T 1 Reply Last reply Sep 13, 2019, 11:19 AM Reply Quote 0
        • T
          Tom Elliott @kralon
          last edited by Sep 13, 2019, 11:19 AM

          @kralon is there a product key entered for that machine in the fog GUI?

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          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

          K 1 Reply Last reply Sep 13, 2019, 2:16 PM Reply Quote 0
          • K
            kralon @Tom Elliott
            last edited by kralon Sep 13, 2019, 8:17 AM Sep 13, 2019, 2:16 PM

            @Tom-Elliott yes it is. key.PNG

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sep 13, 2019, 3:01 PM

              @Sebastian-Roth said in Activate Windows 10 via FOG agent:

              Windows has correct key but is not licensed

              Again, I am wondering what that means…

              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

              K 1 Reply Last reply Sep 19, 2019, 8:20 PM Reply Quote 0
              • K
                kralon @Sebastian Roth
                last edited by Sep 19, 2019, 8:20 PM

                @Sebastian-Roth @Tom-Elliott I dont know its question for you.

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth Sep 19, 2019, 2:57 PM Sep 19, 2019, 8:50 PM

                  @Sebastian-Roth said in Activate Windows 10 via FOG agent:

                  Windows has correct key but is not licensed

                  Well, is your Windows activated?? Please open a command prompt as Administrator and run cscript /B /Nologo C:\Windows\System32\slmgr.vbs /xpr - take a picture of that and post here.

                  What happens in the fog-client code is that we call the official method SLIsGenuineLocal provided by MS system DLL to check activation status - see here. This is working for so many people and I am not sure why it would fail on your system.

                  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

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sep 19, 2019, 8:56 PM

                    @kralon You can manually run the things done by the fog-client to see if it produces an error message - open a command shell as Administrator and run:

                    cscript /B /Nologo C:\Windows\System32\slmgr.vbs /ipk V8DTR-W46H2-.....-.....-.....
                    cscript /B /Nologo C:\Windows\System32\slmgr.vbs /ato
                    

                    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

                    1 Reply Last reply Reply Quote 0
                    • E
                      EduardoTSeoane
                      last edited by Sep 20, 2019, 9:08 PM

                      @kralon @Sebastian-Roth

                      I force the windows 10 activation on Windows 10 Pro with a script like this Script. It’s Writed thinking in WindowsUpdate disabled.
                      It Works to me on all License Types, except LV’s that is not tested.

                      If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
                      {  
                      $arguments = "& '" + $myinvocation.mycommand.definition + "'"
                      Start-Process powershell -Verb runAs -ArgumentList $arguments
                      Break
                      }
                      # License
                      $serviceName  = "wuauserv"
                      $hostinfoFile = "c:\nntt\hostinfo.txt" # this is the hostinfo file downloaded from the postdownload
                      $COAProductKeyPattern = "(?<=hostproductkey=).*"
                      $COAProductKey = Select-String -Path $hostinfoFile -Pattern $COAProductKeyPattern | ForEach-Object {$_.Matches.Value -Replace "'",""}
                      $BIOSProductKey = (get-wmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey.Trim()
                      
                      Set-Service -Name $serviceName -StartupType Manual
                      Start-Sleep -s 5
                      Start-Service -InputObject $serviceName
                      (Get-Service -InputObject $serviceName).WaitForStatus('Running')
                      
                      If ($BIOSProductKey) { Invoke-Expression -Command "changepk.exe /productkey $BIOSProductKey" }
                      ElseIf ($COAProductKey) { Invoke-Expression -Command "changepk.exe /productkey $COAProductKey" }
                      Invoke-Expression -Command "$env:SYSTEMROOT\System32\cscript.exe //B $env:SYSTEMROOT\system32\slmgr.vbs /ato"
                      
                      Start-Sleep -s 10
                      Stop-Service -InputObject $serviceName
                      (Get-Service -InputObject $serviceName).WaitForStatus('Stopped')
                      Start-Sleep -s 5
                      Set-Service -Name $serviceName -StartupType Disabled
                      Start-Sleep -s 5
                      # End License
                      
                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        18/18
                        Last post

                      159

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project