Hostname changer with AD svn 5463 client 9.7



  • -----------------------------------------------------------------------------
    --------------------------------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 ?



  • @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”.


  • Senior Developer

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



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



  • @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”.


  • Senior Developer

    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).


  • Senior Developer

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


  • Senior Developer

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



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


  • Senior Developer

    @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.



  • @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


  • Senior Developer

    @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?



  • @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.


Log in to reply
 

427
Online

38918
Users

10688
Topics

101398
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.