Skip to main content

Post-imaging scripts

postimagingscript.png

Allows you to automate actions after an image is deployed (such as installing software or configuring the network).

To create/edit a script 

  • Side menu:Post-Imaging Script

  • Click Duplicate on the latest postinstall

  • Click Edit on the postinstall script you just created.
  • Type:

MountSystem
CopySysprep (the name of your sysprep without parentheses)
CopyRunAtOnce
CopyAgent
CopyDrivers
UseOEMBiosLicence (if you are using Windows OEM licenses)

  • Associate it with a deployment process

Here is what the post-install script options do:

MountSystem: copies the master image to the machine, mounts the partition(s), and detects the mount points for the various operations.
CopySysprep: retrieves the registered hostname from the PXE (the MAC/hostname association), adapts it in the answer file, and copies it to the Windows image under a generic name, unatended.xml.
CopyRunAtOnce: copies the setupcomplete.cmd file, which will be executed on the final Windows reboot. This file primarily serves to delete the unatended.xml file, which likely contains a user with domain join permissions.
CopyAgent: copies the Medulla-Agent-windows-FULL-latest.exe agent; it is also possible to pass a parameter to select the agent to deploy.
CopyDrivers: Copies the default drivers required by Windows 10.
UseOEMBiosLicence: Copies the license present in the BIOS and enters it into the post-installation sysprep file.