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

book

Article ID: 103793

calendar_today

Updated On:

Products

CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager

Issue/Introduction

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:
 

<Please see attached file for image>

User-added image

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

Environment

CA Client Automation R14 SP2 and newer

Latest Windows 10 and Windows Server 2016 Operating Systems

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

<Please see attached file for image>

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.

<Please see attached file for image>

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.

Attachments

1558700413510000103793_sktwi1f5rjvs16k45.jpeg get_app
1558700411599000103793_sktwi1f5rjvs16k44.jpeg get_app
1558700409720000103793_sktwi1f5rjvs16k43.png get_app