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

    Hostname changer with AD svn 5463 client 9.7

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    13
    4.7k
    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.
    • H
      Hanz
      last edited by Hanz

      -----------------------------------------------------------------------------
      --------------------------------HostnameChanger-------------------------------
      ------------------------------------------------------------------------------
       11/22/2015 10:42 AM Client-Info Version: 0.9.7
       11/22/2015 10:42 AM HostnameChanger Running...
       11/22/2015 10:42 AM Middleware::Communication URL: http://10.72.3.50/fog/service/servicemodule-active.php?moduleid=hostnamechanger&mac=08:00:27:FF:A3:9E||00:00:00:00:00:00:00:E0&newService=1
       11/22/2015 10:42 AM Middleware::Communication Response: Success
       11/22/2015 10:42 AM Middleware::Communication URL: http://10.72.3.50/fog/service/hostname.php?moduleid=hostnamechanger&mac=08:00:27:FF:A3:9E||00:00:00:00:00:00:00:E0&newService=1
       11/22/2015 10:42 AM Middleware::Communication Response: Success
       11/22/2015 10:42 AM HostnameChanger Checking Hostname
       11/22/2015 10:42 AM HostnameChanger Renaming host to SYSPREP-TEST
       11/22/2015 10:42 AM HostnameChanger Unregistering computer
       11/22/2015 10:42 AM HostnameChanger Removing host from active directory
       11/22/2015 10:42 AM HostnameChanger ERROR: Required Domain information is missing
       11/22/2015 10:42 AM HostnameChanger Updating registry
       11/22/2015 10:42 AM RegistryHandler ERROR: Could not set SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerNameComputerName
       11/22/2015 10:42 AM RegistryHandler ERROR: Cannot create a stable subkey under a volatile parent key.
      
       11/22/2015 10:42 AM Power Creating shutdown command in 60 seconds
       11/22/2015 10:42 AM Bus {
        "channel": "Power",
        "data": "{\r\n  \"action\": \"request\",\r\n  \"period\": 60,\r\n  \"options\": 2,\r\n  \"command\": \"/r /c \\\"FOG needs to rename your computer\\\" /t 0\",\r\n  \"message\": \"This computer needs to perform maintenance.\"\r\n}"
      }
       11/22/2015 10:42 AM Bus Emmiting message on channel: Power
      ------------------------------------------------------------------------------
      

      This is when host is currently domained and trying to change name…Fog Settings > Default AD > set with domain name, username, and password(that is legitimate and domain admin account)…
      Same settings applied to host via GUI as well

      Are there any other things I need to do for this to work ?

      H 1 Reply Last reply Reply Quote 0
      • H
        Hanz @Hanz
        last edited by

        @Jbob 0_1448213029065_upload-91fadb4b-a95c-41b2-aa1f-61832fadedf0

        This is copy of registry and it’s entries post error. I didn’t want to screenshot every key, but I can give you entries if necessary… Hope this helps.

        1 Reply Last reply Reply Quote 0
        • J
          Joe Schmitt Senior Developer
          last edited by Joe Schmitt

          @Hanz That key is only updated on windows XP. There are multiple keys that are changed, and the one key failing shouldn’t affect any renaming (That registry key has always failed since the legacy client and up).

          Is the error that the host is not renaming? What is the client failing to do?

          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.

          H 1 Reply Last reply Reply Quote 0
          • H
            Hanz @Joe Schmitt
            last edited by

            @Jbob Interact with AD, the client successfully renames the host, but AD still lists it as the original hostname. It literally does not remove hostname from AD and create new host within AD. I’ve only tried this with the OU left blanked hoping the host would be removed and then re-added in the default “computers” OU

            1 Reply Last reply Reply Quote 0
            • J
              Joe Schmitt Senior Developer
              last edited by Joe Schmitt

              @Hanz

              The problem seems to be with:

               11/22/2015 10:42 AM HostnameChanger Unregistering computer
               11/22/2015 10:42 AM HostnameChanger Removing host from active directory
               11/22/2015 10:42 AM HostnameChanger ERROR: Required Domain information is missing
              

              I’ll look into it.

              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.

              H 1 Reply Last reply Reply Quote 0
              • H
                Hanz @Joe Schmitt
                last edited by

                @Jbob does every host need the correct individual OU assignment to be removed correctly, or does it perform a “search through AD” ?

                1 Reply Last reply Reply Quote 0
                • J
                  Joe Schmitt Senior Developer
                  last edited by

                  @Hanz OU does not matter. All the client needs is the username and password to leave.

                  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.

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    @Hanz Do you have the host joining a specific OU as a part of the domain join?

                    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

                    H 1 Reply Last reply Reply Quote 0
                    • J
                      Joe Schmitt Senior Developer
                      last edited by

                      Problem solved. I teamviewered in and saw that the AD options were disabled. So the host never got the needed ad user/password. (This should be resolved in a patch @Tom-Elliott is working on).

                      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.

                      H 1 Reply Last reply Reply Quote 1
                      • H
                        Hanz @Joe Schmitt
                        last edited by Hanz

                        @Jbob

                        ------------------------------------------------------------------------------
                        --------------------------------HostnameChanger-------------------------------
                        ------------------------------------------------------------------------------
                         11/22/2015 5:04 PM Client-Info Version: 0.9.7
                         11/22/2015 5:04 PM HostnameChanger Running...
                         11/22/2015 5:04 PM Middleware::Communication URL: http://10.72.3.50/fog/service/servicemodule-active.php?moduleid=hostnamechanger&mac=08:00:27:FF:A3:9E||00:00:00:00:00:00:00:E0&newService=1
                         11/22/2015 5:04 PM Middleware::Communication Response: Success
                         11/22/2015 5:04 PM Middleware::Communication URL: http://10.72.3.50/fog/service/hostname.php?moduleid=hostnamechanger&mac=08:00:27:FF:A3:9E||00:00:00:00:00:00:00:E0&newService=1
                         11/22/2015 5:04 PM Middleware::Communication Response: Success
                         11/22/2015 5:04 PM HostnameChanger Checking Hostname
                         11/22/2015 5:04 PM HostnameChanger Renaming host to SYSPREP-TEST2
                         11/22/2015 5:04 PM HostnameChanger Unregistering computer
                         11/22/2015 5:04 PM HostnameChanger Removing host from active directory
                         11/22/2015 5:04 PM HostnameChanger The machine is not currently joined to a domain, code =  2692
                         11/22/2015 5:04 PM HostnameChanger Updating registry
                         11/22/2015 5:04 PM RegistryHandler ERROR: Could not set SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerNameComputerName
                         11/22/2015 5:04 PM RegistryHandler ERROR: Cannot create a stable subkey under a volatile parent key.
                        
                         11/22/2015 5:04 PM Power Creating shutdown command in 60 seconds
                         11/22/2015 5:04 PM Bus {
                          "channel": "Power",
                          "data": "{\r\n  \"action\": \"request\",\r\n  \"period\": 60,\r\n  \"options\": 2,\r\n  \"command\": \"/r /c \\\"FOG needs to rename your computer\\\" /t 0\",\r\n  \"message\": \"This computer needs to perform maintenance.\"\r\n}"
                        }
                        

                        booted to local login after reboot then this was in log… after disabling the “uninstall when out of scope of management”.

                        1 Reply Last reply Reply Quote 0
                        • H
                          Hanz @Tom Elliott
                          last edited by

                          @Tom-Elliott no I left it as default which should be “computers” correct ?

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            Please update to the latest and let me know if all is working okay?

                            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

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              Hanz @Tom Elliott
                              last edited by Hanz

                              @Tom-Elliott Didn’t have “join domain after image task” checked under host, and apparently didn’t allow enough reboots ( 2 by fogservice) for it to re-domain itself with new name. **Also had to make sure the gpo package (which I use to push client) was NOT set to “uninstall package when no longer managed”.

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

                              190

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project