C:\oeminst\custom.cmd and C:\oeminst\oobecustom.cmd scripts not executed after OS Golden Image installation.
search cancel

C:\oeminst\custom.cmd and C:\oeminst\oobecustom.cmd scripts not executed after OS Golden Image installation.

book

Article ID: 240184

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Software Delivery

Issue/Introduction

After OSIM Installation using a Golden image, scripts C:\oeminst\custom.cmd and C:\oeminst\oobecustom.cmd are not executed.

local admin user is not created, computer do not join the domain and SD Agent is not installed.

Environment

Client Automation - All versions

Resolution

Here is the method to configure the Golden image (created from a Model PC) for execution of C:\oeminst\custom.cmd and C:\oeminst\oobecustom.cmd scripts after OS installation.
 
1- On Domain Manager, open a cmd prompt and go in Golden Image directory (where there is the .wim image file)
 
cd C:\Program Files (x86)\CA\DSM\Server\SDBS\var\managedpc\images\<GOLDEN_image>\<golden_image>
 
2- Create a temp directory
mkdir c:\temp\mount
 
3- Execute this command 
 
DISM.exe /Mount-Wim /WimFile:newimage.wim /index:1 /MountDir:C:\temp\mount
 
Replace newimage.wim by the correct name file for OS image
 
Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Mounting image
[==========================100.0%==========================]
The operation completed successfully.
 

4- Copy attached file unattend.xml into C:\TEMP\mount\Windows\Panther

5- Execute this command :

DISM.exe /Commit-Wim /MountDir:C:\TEMP\mount

 

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Saving image
[==========================100.0%==========================]
The operation completed successfully.

 

6- Close Windows Explorer (used to copy the file unattend.xml)

7- Execute this command :

DISM.exe /Unmount-Wim /MountDir:C:\TEMP\mount /commit

 

Deployment Image Servicing and Management tool
Version: 10.0.17763.1

Image File : C:\Program Files (x86)\CA\DSM\Server\SDBS\var\managedpc\images\GOLDEN_TEST\GOLDEN_TEST\newimage.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]

The operation completed successfully.

 

If this error occurs :

Error: 0xc1420117
The directory could not be completely unmounted.  This is usually due to applications that still have files opened within the mount directory.  Close these files and unmount again to complete the unmount process.

Close the application using C:\TEMP\mount and try with :

DISM.exe /Unmount-Wim /MountDir:C:\TEMP\mount /discard

 

7- Check that file D:\osim\managedpc\images\<GOLDEN_image>\<golden_image>\<image.wim> has been updated

8- Check if it is working fine with this updated Golden Image

Attachments

1650894807236__unattend.xml get_app