An interactive script that automates part of a One Zero One series that illustrates how to automate the process of deploying an AD Lab. It leverages resources from the One zero One AD Lab resources to customize AlmaLinux and Microsoft installer ISOs. If a customized ISO is found, it is skipped.
To use this script you must first implement the Active Directory Lab Part II: Customization Prerequisites.
This script is published to PowerShell Gallery. Ensure your system is configured for this repository then execute the following in an Administrator PowerShell:
Install-Script ozo-ad-lab-customize-isos
ozo-ad-lab-customize-isos
-OZOADLabDir <String>
Parameter | Description |
---|---|
OZOADLabDir |
Location of the ozo-ad-lab directory. Defaults to $Env:SystemDrive\ozo-ad-lab . |
When the OZO AD Lab resources have been downloaded and extracted to the root of your system drive (typically C
) and all prerequisites described in Active Directory Lab Part II: Customization Prerequisites are satisfied, you can run this script with no parameters:
ozo-ad-lab-customize-isos
If your OZO AD Lab resources are located elsewhere, you can specify the directory, e.g, if they are extracted to C:\Temp\ozo-ad-lab
:
ozo-ad-lab-customize-isos -OZOADLabDir "C:\Temp\ozo-ad-lab"
Run this script in an Administrator PowerShell.
Special thanks to my employer, Sonic Healthcare USA, who has supported the growth of my PowerShell skillset and enabled me to contribute portions of my work product to the PowerShell community.