[RESOLVED] Domain name change

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

March 21, 2025 - 5:09 PM

Wapt version: 2.6.0.16937 - Enterprise Edition
Server OS: Debian 12
Target operating systems: Windows 10 and 11
Os Machine administration: Win server 2022

Hello, we are encountering a problem when we want to change the name of a workstation in AD.
Case 1: we leave the position in the domain and we change its name.
After rebooting, the name in AD and on the workstation did change, but:
- Unable to log in with an AD account: Trust relationship error message
- When you want to "identify the workstation on the network", the workstation appears with its old name
- In the register, many keys appear with the old name of the position

Case 2: We remove the computer from the domain and change its name.
After rebooting, when trying to rejoin the computer to the domain, the tab remains greyed out
AD01.PNG
AD01.PNG (19.68 KB) Viewed 5438 times
We use the OS deployment function with the win10_with_join_ad_offline.xml and win11_with_join_ad_offline.xml configuration files and the Win10_22h2 and Win11_24h2 ISOs

However, if we deploy the OS using a USB drive (i.e., outside of WAPT), we never encounter this problem, even when using the same ISO files. Therefore, the problem seems to be related to WAPT.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 21, 2025 - 5:33 PM

Hello

, I identified this problem a year ago:
https://learn.microsoft.com/en-us/answe ... ws10-xml-d

I reported the problem to Microsoft, but nothing has changed. I tried removing WAPT from the loop to check if it was a WAPT issue or a purely Microsoft problem, and it's a Microsoft issue...

(There's a registry key trick in the article) to bypass the problem...
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

March 24, 2025 - 08:31

Thanks for the feedback. I confess I'm a bit confused. You mentioned a Microsoft issue, but if I create a bootable image with Windows on it, I don't encounter any problems renaming it (even multiple times).
The problem only appears if I deploy the OS using WAPT. :? Is it the deployment method that's causing the issue? Because we're using an XML file?
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 24, 2025 - 09:28

Hi Cédric,

this is related to offline joining with djoin, which is used by default in WADS for security reasons in the XML template. Whether you use Microsoft's djoin.exe or WAPT's djoin, it poses the same problem as long as the binary join blob is integrated into unattend.xml [1]. Hence Simon's comment that it's a Microsoft issue.

If you change your unattended XML template and use online joining (no djoin) as people usually do with MDT, this problem won't occur. However, from a security standpoint, it's strongly recommended not to leave join accounts in the XML files, so you're supposed to perform the join manually, meaning no fully automated deployment.

Note: offline join is also possible with MDT, but it's not well integrated, so people don't do it.

Note 2: We're considering doing the offline connection via post-installation instead of the XML file to avoid the Microsoft bug; we'll keep you updated.

Note 3: If you can open tickets with Microsoft, feel free to do so. However, given Microsoft's strategy is to put everyone in Azure, I don't know if it will be very effective.

Regards,

Denis

[1] https://learn.microsoft.com/en-us/windo ... ml-example
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

March 24, 2025 - 10:30

Thank you for the answer, I understand better now.
Locked