Forcibly Push Installer to AD Domain
In some fragile environments, particularly if recovering from a recent attack or outage, normal RMM and/or SCCM deployments might not be an option. Here you will find a script that can serve as a template for how you might be able to forcibly push a CC installation across an active directory environment.
Note: This script will likely need to be tailored for your use case, and does require domain credentials to run. It is expected that this script would be run directly on a (primary) domain controller.
Steps to run
Update the
$install_targetsvariable with a list of machine names (NETBIOS or similar host names)Download a ‘normal’ installer ps1 script from the Cyber Crucible dashboard
Update variables in the push_installer_ad.ps1 script to be the same as your group specific variables from the dashboard script
${GroupId}${ClientAuth}any
--rest-pub-keyvariables
Download a native CLI executable from the Cyber Crucible dashboard
Place the CLI on a network share, or somewhere accessible to all machines to be installed
This prevents each machine from having to waste time and bandwidth re-downloading the same exe
The same exe may be executed for different OSs, as the installer will pull down the relevant service/driver/installation files for the detected OS and role of the machine.
Set
${OutputFilePathto the path of the CLI on a network share
Possibly remove ICMP online check (if not needed / invalid for your environment)
Run script with
-credentiale.g.
./push_installer_ad.ps1 -credential ad1\kyle