Preparing OS bundle content

You must prepare and configure content that you intend to use for provisioning endpoints.

Download provided files for Provision

Provision includes two ZIP files that you can use to generate some content for the OS bundle:

  • scripts.zip: Includes custom scripts that you can modify to call commands during the provisioning process. For more information, see Include custom scripts.

    Note: Download this file only if you need to make modifications to the included Provision scripts.
  • utility.zip: Includes scripts to generate the required Windows ADK content for Windows OS bundles. For more information, see Generate the Windows ADK content.

You can download the ZIP files from the Provision workbench.

  1. From the Main menu, go to Modules > Provision > Overview.
  2. Click Settings cog and then click File Downloads.
  3. Click the files that you want to download.

Obtain Windows OS bundle content

You must obtain the following content for Windows operating systems:

  • Windows image file: You can use the install.wim file from the standard Windows media ISOs or a custom WIM file captured after the OS was sysprepped.

  • Windows ADK: You can download the latest Windows 11 or Windows 10 ADK files from Microsoft. Both the Windows ADK and the WinPE add-on must be installed. For the ADK installation, the deployment tools and User State Migration Tool (USMT) components must be installed on any supported Windows endpoint, such as Windows 10, Windows 11, or Windows Server.

    Important: When performing refresh deployments, ensure that your ADK version supports the version of Windows you are deploying. Otherwise, you might encounter USMT errors. For more information, see Microsoft Documentation: Download and install the Windows ADK.
  • Certificates: If your endpoints require the Windows UEFI CA 2023 certificate to be trusted by the Unified Extensible Firmware Interface (UEFI) Secure Boot Allowed Signature Database (DB), you must use Provision 1.19 or later and use Windows ADK 10.1.26100.2454 (December 2024) or later to generate the Windows ADK content. When you create a Windows OS bundle, add an OS image WIM file that contains Windows August 2024 cumulative update or later or add the cumulative update in the Drivers and Patches section.

  • Unattend_<architecture>.xml: To support customizing and configuring the Windows image, Provision uses unattend_<architecture>.xml. Provision supports key value pairs and variable substitution in unattend_<architecture>.xml. For example, if you specify the ComputerName key value pair in unattended.xml, Provision substitutes the ComputerName key value from the OS bundle. For more information, see Reference: Variables and advanced customization.

    Tip: You can download a sample unattend_<architecture>.xml to use as an example. unattend_<architecture>.xml is included in utility.zip, which is available in Provision Overview > Settings > File Downloads. 
  • Tanium Client installer package: Download the Windows client installer bundle from the Tanium Client Management Overview page. For more information about how to download the bundle, see Download installation packages for the Tanium Client.

    Note: Ensure that the install.bat, SetupClient.exe, and tanium-init.dat files exist at the root of the package. If tanium-init.dat is not included, download and add tanium-init.dat to the package. For more information, see (Optional) Download a tanium-init.dat file for alternative deployment.
  • Custom scripts: (Optional) You can specify a ZIP file that contains scripts and any other required files to configure the OS. For more information, see Include custom scripts.

  • Drivers for the models of computers that you are deploying: Each computer model needs different driver packages, which includes .inf files and supporting files. Copy these drivers and create a compressed file for each model. You might also want to create a compressed file of common drivers that can be downloaded to all provisioned computers. Before creating a compressed file, confirm that the driver files are in folders and are not inside of executables or other compressed files. Follow the naming conventions in Driver package naming for the driver package. For more information, see the following resources:

  • Patches: (Optional) You can specify one or more OS updates or patches to inject into the OS offline, before booting into the OS for the first time.

    Note: Use Tanium Patch to install patches after the endpoint is provisioned to save deployment time in Provision.

Driver package naming

Use the following conventions to create a driver package:

  • Save as a .zip or .cab file.

  • For common drivers that you want to download to all provisioned computers, create drivers.(zip|cab). For example, you might create a drivers.zip for docking station or printer drivers.

  • For drivers specific to a computer model, use a naming option based on computer model, Lenovo model IDs, or SMBIOS Version attribute.

    • Computer model: Create drivers_%Model%.(zip|cab), for example, drivers_SurfaceBook.zip or drivers_SurfaceBook.cab.

      To get the Model string, run the PowerShell command (Get-ComputerInfo | Select-Object -ExpandProperty CsModel).Replace(" ","").

    • First four characters of Lenovo model IDs: Create drivers_%ModelAlias%.(zip|cab).

      To get the ModelAlias string, run the PowerShell command (Get-ComputerInfo | Select-Object -ExpandProperty CsModel).Substring(0,4).

    • Version attribute in SMBIOS System Information (Type 1) structure: Create drivers_%Version%.(zip|cab), for example, Lenovo ThinkPad X1 Carbon gen 2.(zip|cab).

      To get the Version string, run the PowerShell command (Get-WmiObject -Class Win32_ComputerSystemProduct| Select-Object -ExpandProperty Version).Replace(" ","")

Create driver package for older computer models

If you need a driver package for a non-enterprise grade or an older computer model, check if the hardware vendor provides a driver package. If the vendor does not provide a driver package, you can create a driver package using the Export-WindowsDriver cmdlet.

  1. Install a base operating system that matches your target operating system, for example, Windows 10 for Windows 10.
  2. Install all necessary drivers by using Windows Update or manual driver installations.
  3. Use the Export-WindowsDriver cmdlet to create a folder that contains all third-party drivers. For example, run the PowerShell command Export-WindowsDriver -Online -Destination C:\Drivers

    This command creates the folder if it does not exist (for example, C:\Drivers) and creates one subfolder per driver.

  4. Compress and name the folder using the guidelines in Driver package naming.

Generate the Windows ADK content

Deploying a Windows operating system using Tanium Provision requires some files from the Windows Assessment and Deployment Kit (ADK).

Important: Ensure that you install both the Windows ADK and WinPE add-on to the computer that you are using to generate the Windows ADK content. For more information, see Obtain Windows OS bundle content.
  1. Extract the contents of the previously downloaded utility.zip file to a folder, such as C:\Users\Administrator\Documents.

  2. Open an elevated PowerShell command.

    1. Ensure that the execution of scripts is allowed by entering the following command:

      CODE
      Set-ExecutionPolicy bypass
    2. Navigate to the folder that contains the ADKPrep.ps1 script by entering the following command:

      CODE
      cd C:\Users\Administrator\Documents\utility\ADKPrep
    3. (Optional) If any additional mass storage drivers are required for Windows PE, put them in an architecture-specific folder, such as C:\Users\Administrator\Documents\utility\ADKPrep\amd64\Drivers.

      These files are automatically injected into Windows PE as part of the ADKPrep.ps1 script execution.

    4. Generate the ADK zip files for the architecture that you need by entering the following example command. The supported architectures are amd64 and arm64.

      CODE
      .\ADKPrep.ps1 -Architecture amd64 -EnableDebugPrompt
      Tip:
      • You can alternatively open a command prompt and enter the following command from C:\Users\Administrator\Documents\utility\ADKPrep:

        CODE
        Powershell.exe -ExecutionPolicy Bypass -File .\ADKPrep.ps1 -Architecture amd64
      • EnableDebugPrompt is an optional parameter that opens a debug prompt if the bootstrap.ps1 script in the Windows PE cannot find the local drive that contains the required Provision scripts. You can use the prompt to troubleshoot the failure. After the prompt is closed, the system reboots. If you do not use the EnableDebugPrompt parameter and an error occurs, an error message is displayed and the system reboots after the error is acknowledged.

  3. Ensure that no errors were generated.ADKPrep_script

  4. Copy the generated ADK_<architecture>.zip files to a convenient location that is easy to remember, such as C:\ProvisionFiles.

Tip: The utility.zip file also includes an Unattend folder with unattend_<architecture>.xml template files that are required to create an OS bundle. You can copy them to C:\ProvisionFiles to use in Create a Windows OS bundle.

Capture a Windows OS image

If you want to use a custom OS image instead of one that is provided by Microsoft, you can use Provision to capture an image. Provision always captures the first NTFS volume.

After you configure your Windows OS and generalize it with sysprep, you can use Provision to capture the OS into an image file. To generalize the OS, open the Command Prompt as administrator and enter the following command:

CODE
%WINDIR%\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown
  1. Boot the computer, using either the media or PXE options, into the Tanium Provision boot image.
  2. After connecting to a network, click Capture.
    Figure 1. Capture window
    capture_OS
  3. Enter an Image name.
    Tip: If the specified WIM file already exists, a different image name causes a new image to be added to that WIM file. You can have multiple OS images within one WIM file.
  4. Enter a File name with a .wim file extension.
  5. Enter the UNC (SMB/CIFS) path where you want the image file to be created.
  6. Enter the User name and Password credentials to establish a connection with the SMB path and then click CAPTURE.
    Figure 2. Capture connection details
    capture_Windows
  7. After the capture process completes, you can reboot the computer back into the OS, which is not modified during the capture process.

Obtain Linux OS bundle content

You must obtain the following content for Linux operating systems:

  • Cloud-init file: To support customizing and configuring the Linux image, Provision uses the cloud-init configuration tool. For more information, see the cloud-init website. The cloud-init tool must be installed in the Linux OS using the appropriate method for the specific OS that you want to deploy. For example:

    • AlmaLinux, Centos, RedHat, and Rocky Linux: yum install cloud-init

    • Debian and Ubuntu: apt install cloud-init

    Tip: Two cloud-init template files are also provided in the utility.zip file that you can download from the File Downloads tab of the Provision Settings cog. You can use either of these files as-is, or customize them by adding any additional configuration.
    • user-data.yaml: configures the admin password and installs the Tanium Client

    • redhat.yaml: configures the admin password, installs the Tanium Client, and refreshes the RedHat subscription

    Important: For Debian, Ubuntu, and other operating systems that include cloud-init by default, run the cloud-init clean command before the final shutdown of the reference image. Running this command ensures cloud-init is in the correct state for Tanium Client deployment and other tasks added to cloud-init.
  • Tanium Client installer package: Create a client configuration for Linux using Tanium Client Management. For more information, see Download installation packages for the Tanium Client.

  • Custom scripts: (Optional) You can specify a ZIP file that contains scripts and any other required files to configure the OS. For more information, see Include custom scripts.

Capture a Linux OS image

Deploying a Linux operating system using Tanium Provision requires capturing an image of a complete Linux installation.

The following Linux distributions and versions are supported by Provision:

  • AlmaLinux 8.6, 9

  • CentOS 7, 8

  • Debian 11

  • RHEL 8.4, 8.5, 8.6, 9

  • Rocky Linux 8.6, 9

  • Ubuntu 22.04, 24.04

The following Linux distributions are not supported by Provision:

  • Amazon Linux

  • IBM AIX

  • Oracle Solaris

  • SUSE (SLES)

Before you capture a LinuxOS image, review the following required configurations:

  • Provision supports the default disk layouts for each OS that is captured and deployed:

    • AlmaLinux, CentOS, RedHat, and Rocky Linux: LVM and XFS file systems

    • Debian and Ubuntu: single Ext4 partition contains the entire OS

  • Disable the swap file. For example, on AlmaLinux, CentOS, RedHat, and Rocky Linux, use the swapoff -a command.

  • Ensure that the operating systems use the following volume group names. Provision can only deploy images with these volume group names.

    • RedHat: rhel

    • CentOS: cl

    • AlmaLinux: almalinux

    • Rocky Linux: rl

After you configure your Linux OS, you can use Provision to capture the OS into an image file.

Important: Ensure that the capture image disk size is at least 55 GB.
  1. Boot the computer, using either the media or PXE options, into the Tanium Provision boot image.
  2. After connecting to a network, click Capture.
    Figure 3. Capture window
    capture_OS
  3. Enter a File name with a .fsa file extension.
  4. Enter the UNC (SMB/CIFS) path where you want the image file to be created.
  5. Enter the User name and Password credentials to establish a connection with the SMB path and then click CAPTURE.
    Figure 4. Capture connection details
    capture_Linux
  6. After the capture process completes, you can reboot the computer back into the OS, which is not modified during the capture process.

Manage OS bundle files

The Provision OS Bundles Files page shows all the OS bundle content that was uploaded, including files uploaded while Creating an OS bundle. Use this page to upload, delete, and manage files across OS bundles. For example, you can upload a WIM file and then assign the WIM file to multiple bundles at once, instead of updating each bundle individually.

Important: Files that are not assigned to any bundles are automatically deleted after 90 days. To see which files are scheduled to be deleted, see the Will Expire column on the OS Bundle Files page.

Upload a file

Upload a file and optionally, associate the file with one or more OS bundles.

  1. From the Main menu, go to Modules > Provision > OS Bundle Files.
  2. Click Upload File.
  3. Complete the fields to define the file attributes. These attributes are used to filter the files that appear when you create or edit an OS bundle.
    • Platform: Select the platform that this file is intended for.

    • Architecture: Select the target system architecture.

    • File Type: Select the file type.

    • OS Bundle: (Optional) Assign the file to one or more bundles.

  4. Click Browse For File and select the file to upload.
  5. Click Save.

Associate a file with a bundle

Assign files to existing OS bundles so that the files are used during the provisioning process. If an OS bundle already includes a file with the same name, the file is replaced with your selection.

  1. From the Main menu, go to Modules > Provision > OS Bundle Files.

  2. In the Edit bundles column, click add for the file that you want to assign to bundles.

  3. In the All Available Bundles section, click Associate Bundle add for the target bundles. If you want to associate the file with all bundles, click Associate All Bundles. The list of available bundles includes applicable bundles only.

  4. (Optional) If you are replacing a file and the replaced file is not used in any other bundles, you can select Permanently delete these unused files to remove the file from storage immediately. When not selected, files are automatically deleted after they remain unassociated with any bundle for 90 consecutive days.

  5. Click Save.

View file details

View file details to understand which bundles are using the file.

  1. From the Main menu, go to Modules > Provision > OS Bundle Files.
  2. Click Additional Data ExpandSidePanelIcon for the file that you want to view. The Used By section shows the OS bundles that are using the file.

Delete a file

To maintain an organized and up-to-date OS Bundle Files page, delete files that you no longer need. You can only delete files that are not assigned to any bundles.

  1. From the Main menu, go to Modules > Provision > OS Bundle Files.
  2. Select the checkboxes for the files that you want to delete.
  3. Click Delete trash.