• @sebastian-roth

    Thank you for that tip! I will ensure this gets done as well.

    It may take me some time to get this data to you with our hybrid schedule, but I will be sure to upload it!

    I am very interested to see what we get as well. I will also comb through these logs to ensure that there isn’t anything apparent in that area as well.

    Thanks!

    Lambo

  • Senior Developer

    @lambo Don’t forget to Reset Encryption Data in the FOG web UI for this client so it will checkin straight away every time as well.

    Looking forward to see what we get from these tests.

    As well you might try taking a look at the event logs of the PC and maybe the AD server as well when you see it doesn’t work as expected.


  • @sebastian-roth

    Hi Sebastian,

    Sorry for the delay, we have been quite busy at work.

    You are exactly correct, the known good image has the same issue as well. No MS updates on it.

    I will certainly test this out! I think this is a great idea and hopefully it produces something tangible we can utilize.

    I will report back once finished!

    Thanks!

    Lambo

  • Senior Developer

    @lambo said in Hostname Changer AD Issues:

    Give me some time to try and curate a list of these changes, although the issue has appeared on our known good image as well.

    Well that’s definitely an interesting point. So do I get this right? That known good image was captured some time before the issue started, no MS updates applied to it, sure. Can you do a series of tests with that image (maybe you’ve done the test already and can report right away)? Deploy it to the exact same host 10 times. Beforehand and in between remove the machine account from the AD. I know this will only look into one of the issues but we need to try and focus on one thing at a time in hope to spot what’s going in. So let it do the deploy, rename and join. Then check AD, join state in the client, fog-client log and user login (does it loose trust to AD?). Note down results for each round.

    What I hope to get from this is, if we get persistent behavior with one defined scenario or if we see different outcomes.


  • @sebastian-roth

    Thank you so much for your reply, I have seen your name dozens of times while researching various issues. It is a pleasure to speak with you.

    Can you be more specific on when this started? Did it work without issues before? Just wondering if it could be Windows or .NET updates or something else that brought this issue up.

    This issue was discovered on 1/28/2021 in our organization. We had new PCs to deploy and some technicians discovered the issue, but I am unsure how long it would have existed before we discovered the issue. AD Join / Hostname Changer did work perfectly fine before this issue was discovered.

    It is quite possible that this issue is because of a newer .NET issue or similar, it is hard to say with all the changes MS is implementing! We did have a new image created, Version 20H2, but our old image is experiencing issues as well, Version 2004. I can troubleshoot whatever you need though!

    None of those things would play a role in this case. Not the kernel used and there have not been changes in how FOG handles hostname changes between 1.5.9 and 1.5.9.60. As well, the fog-client being involved a lot has not been updated.

    Did you update from an earlier version to 1.5.9 when this started to happen?

    I didn’t think these would play a role in Hostname Changer, but I figured I would give it a try just in the off chance that there was a difference. We upgraded from v1.5.8 to v1.5.9. From my memory, we didn’t have any issues after the upgrade. But see if anyone else noticed anything.

    If the fog-client version used has not changed I can only see other components (Windows build version, Windows Updates, .NET Updates, AD server Updates, GPO, …) causing this.

    Don’t get me wrong. I am not saying this is non of our business. What I am asking for is a detailed description of components that changed since it worked last. Otherwise this won’t get us anywhere I suppose.

    I can certainly see how that could affect the system as well. Give me some time to try and curate a list of these changes, although the issue has appeared on our known good image as well. But I can still compile a list.

    Which Windows 10 build version do you use?

    Previously we were utilizing 2004, then we moved to 20H2. We always keep one known good version in the event there are issue with the new image.

    Which AD server version?

    AD Server version is Server 2012 R2

    All current updates installed on the systems?

    At the time of creation all updates were installed on the image, but i can update a PC after imaging or update the image if you’d like.

    Just to clarify what this option really does is that it edits the Windows registry files after deploying the image to disk (before the very first reboot!) to change the computer name. This has worked with Windows 7 in the past and I have tested this with Windows 10 not long ago. Though I did not test this in a setup with AD integration. So I can’t say if this would cause any side effects.

    That’s an interesting point! From my point of view there is no need to have CHANGE HOSTNAME EARLY enabled if you use the fog-client doing the renaming for you. As you say it shows less issues, just leave that switched off.

    Thank you so much for the information on this setting! I wasn’t sure exactly how it functioned. Unfortunately for me, today it made me a liar, in my testing it isn’t wanting to add the PC to AD even with this setting unchecked. We are just experiencing very very strange issues. It also acts like the PC is on the domain, I can log in with my network account, but the PC is nowhere on the domain and will eventually encounter a Trust Relationship issue.

    Let me know if there is anything at all you would be interested in seeing. I can recreate the images, grab logs, test whatever you may need.

    One thought I had, is it possible to downgrade from version 1.5.9 to 1.5.8 for testing purposes?

    Thanks!

    -Lambo

  • Senior Developer

    @lambo

    Currently, we just started experiencing issues with Hostname Changer over the past couple of weeks.

    Can you be more specific on when this started? Did it work without issues before? Just wondering if it could be Windows or .NET updates or something else that brought this issue up.

    We are running FOG Version 1.5.9 with Debian 10. We have also tried a couple of the trunk versions as well for troubleshooting this issue, including 1.5.9.60. We also tested with the latest Kernel build.

    None of those things would play a role in this case. Not the kernel used and there have not been changes in how FOG handles hostname changes between 1.5.9 and 1.5.9.60. As well, the fog-client being involved a lot has not been updated.

    Did you update from an earlier version to 1.5.9 when this started to happen?

    The issue that we have started to see somewhat broad, but I will explain as best I can.

    On new images, if the PC doesn’t exist Hostname Changer will no longer create an AD Object for the PC.

    If the fog-client version used has not changed I can only see other components (Windows build version, Windows Updates, .NET Updates, AD server Updates, GPO, …) causing this.

    Don’t get me wrong. I am not saying this is non of our business. What I am asking for is a detailed description of components that changed since it worked last. Otherwise this won’t get us anywhere I suppose.

    • Which Windows 10 build version do you use?
    • Which AD server version?
    • All current updates installed on the systems?

    One thing I did find on an old forum post, is the following setting:
    Fog Configuration > General Settings > CHANGE HOSTNAME EARLY

    Just to clarify what this option really does is that it edits the Windows registry files after deploying the image to disk (before the very first reboot!) to change the computer name. This has worked with Windows 7 in the past and I have tested this with Windows 10 not long ago. Though I did not test this in a setup with AD integration. So I can’t say if this would cause any side effects.

    Turning this off allowed new AD objects to be created successfully on new images with no preexisting AD entry.

    That’s an interesting point! From my point of view there is no need to have CHANGE HOSTNAME EARLY enabled if you use the fog-client doing the renaming for you. As you say it shows less issues, just leave that switched off.

324
Online

8.2k
Users

15.1k
Topics

141.9k
Posts