Joining a Target to a Domain through OSIM Job fails. The OS installation completes successfully but the target is not joined to a Domain

Document ID : KB000103793
Last Modified Date : 29/06/2018
Show Technical Document Details
Issue:
Joining a Target to a Domain through OSIM Job fails. The OS installation completes successfully but the target is not joined to a Domain
 
Domain parameters in the OSIM Job:
 
User-added image
Environment:
CA Client Automation R14 SP2 and newer

Latest Windows 10 and Windows Server 2016 Operating Systems
Cause:
In Windows 10 Fall Creators Update and Windows Server, version 1709 (RS3) and later versions, the Server Message Block version 1 (SMBv1) network protocol is no
longer installed by default. It was superseded by SMBv2 and later protocols starting in 2007. Microsoft publicly deprecated the SMBv1 protocol in 2014.
 
More Information can be found at
Resolution:
During the OS installation, SMBv1 can be temporarily enabled on the target for joining it to a domain.
Reset the value , once the operation is finished.
 
Steps to Enable SMBv1 during OSIM Job:
 
1. Open the custom.cmd  :
  1. If you are creating the OS Image the file can be changed in  DSM\osimips\os-template\images\<WINDOWS OS TYPE>\oeminst
  2. If the OS image already exists , change the file from the location: DSM\Server\SDBS\var\managedpc\images\<ImageName>\<ImageName>\oeminst
 
Add the following commands before the agent installation step:
 
    echo Enable SMBv1 protocol, to enable the target to join it to a Domain  >> c:\calogfile.txt
   powershell -Command "Enable-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" -norestart -All"  >> c:\calogfile.txt
 
e.g.:
 User-added image
 
2. Open the oobecustom.cmd  :
  1. If you are creating the OS Image the file can be changed in  DSM\osimips\os-template\images\<WINDOWS OS TYPE>\oeminst
  2. If the OS image already exists , change the file from the location: DSM\Server\SDBS\var\managedpc\images\<ImageName>\<ImageName>\oeminst
 
Add the following commands After the Domain Joining step:
 
  echo Disable SMBv1 protocol after joining the target to a Domain  >> c:\calogfile.txt
  powershell -Command "Disable-WindowsOptionalFeature -Online -FeatureName "SMB1Protocol" -norestart" >> c:\calogfile.txt
 
e.g.
User-added image
 
3. Initiate the OSIM job after these changes.
 
4. The target machine would be joined to a Domain after the successful completion of the OSIM Job.