Provision Quick Start: Install, Configure, and Test
Overview
This guide goes through the following process:
-
Installing the Provision module. Only on-premises customers need to perform this step. Tanium Cloud customers have this performed automatically.
-
Creating a Windows OS bundle to deploy.
-
Configuring a Provision endpoint.
-
Configuring offline domain join
-
Testing the deployment of a bundle.
This example uses a HyperV VM for testing. You can also use a VMWare VM. Testing with a VM is a great place to start because there are less steps required to get up and running. Because both HyperV VM and VMWare VM provide basic drivers out of the box, neither require you to add drivers to function with Windows 10.
If you are testing with hardware which Windows does not have native driver support, you may need to create driver packs to get up and running quickly. See Preparing OS bundle content, Windows for more information.
Pre-requisites and Assumptions
-
The following minimum versions for dependent solutions must be met (on-premises deployments only). If any solutions are missing or not up to date this must be addressed first.
-
Core Content 1.3.100 or later
-
Tanium Client Management 1.7 or later
-
Tanium Direct Connect 2.6.26 or later
-
Tanium Interact 2.9.76 or later
-
Tanium RDB Service 1.0.170 or later
-
Tanium Secrets Service 1.0.104 or later
-
Tanium System User Service 1.0.40 or later
-
-
A Windows machine for use as a Provision endpoint, this can be a client or server operating system, this must be joined to AD if you are using the domain join functionality provided by Provision.
-
A VM to build, this should be in the same VLAN / broadcast domain as the Provision endpoint. If they are in a separate VLAN, DHCP options 66 & 67 will require configuration on your DHCP server.
-
No other network boot services are in operation on the VLAN. They must be disabled while you test.
-
Direct Connect must be configured and working correctly.
-
An existing Windows client deployment created in Tanium Client Management.
-
Access to a Windows installation ISO, this example uses Windows 10.
Import Module
If you are a Tanium Cloud customer there is no need to import the Provision module, it is automatically installed as soon as the module is licensed.
For on-premises Tanium customers:
-
Navigate to Administration > Solutions.
-
Locate the Provision entry in the Content list, enable the check box and click Install. This guide assumes that you use the Automatic configuration with default settings option.
-
After the module import is complete, navigate to Administration > Action Groups and locate the Tanium Provision action group. Ensure that the Computer group for this action group is set to All Computers. This does not deploy any tooling. Tooling is only deployed when an endpoint is designated to be a Provision endpoint.
Configure Satellite
Any machine that you want to become a Provision endpoint must be enabled as a Satellite in Tanium. Use the following procedure.
-
Navigate to Administration > Direct Connect, scroll to the Satellites section, and click Create Satellite.
-
Search for the endpoint you would like to become a Satellite, by name or IP address
-
Click Create Satellite. This button will change to Pending Verification.
-
To complete the verification, close the search bar by clicking the X.
-
Click Continue.
-
Instructions are displayed on how to verify the Satellite. Assuming the Tanium Client is installed to the default location on a 64bit Windows operating system (c:\Program Files (x86\Tanium\Tanium Client), open an elevated command prompt and change the directory to c:\Program Files\x\86\Tanium\Tanium Client\Tools\DirectConnect\scripts, and execute the command get_endpoint_fingerprint.cmd.
-
Copy the output returned to the clipboard (beginning f0 in the above example), paste this into the Unique Identifier text box:
-
Click Save. A message is displayed indicating that the operation was successful.
-
Now that the Satellite is created, the Provision service can be enabled for this endpoint.
Add Permissions for ODJ
Provision can join a machine to Active Directory and put the computer object in a specified OU. To configure, these permissions must be delegated to the computer object for the machine that is running the Provision service for the OUs and where Provision should create computer objects in AD.
In this guide, a dedicated OU is created for this purpose. You can use existing OUs, but the required permissions must be added.
To setup the required permissions, use the following steps.
-
Open Active Directory Users and Computers and connect to the domain where you want the computer accounts created.
-
Right-click the domain, select New > Organizational Unit.
-
Type a name for the OU and click OK.
-
Right-click the OU and click Delegate Control. Click Next then click Add in the Delegation of Control Wizard.
-
For Select this object type, click Object Types. Select Computers, and then click OK.
-
For Enter the object names to select (examples), provide the name of the computer that is running the ODJ process. Click Check Names, click OK, and then click Next.
-
Select Create a custom task to delegate and then click Next.
-
Select the following options and then click Next.
-
Only the following objects in the folder
-
Computer objects
-
Create selected objects in the folder
-
Delete selected objects in this folder
-
-
Select the following permissions, click Next, and then click Finish.
-
Read all properties
-
Write all properties
-
Read permissions
-
Write permissions
-
Change password
-
Reset password
-
Validated write to DNS host name
-
Validated write to service principal name
-
-
Finally, capture the DN of the newly created OU for use later in the process. In Active Directory Users and Computers, enable Advanced Features by selecting View > Advanced Features.
-
Right click on the newly created OU, select Properties, select the Attribute Editor tab.
-
Double click the distinguishedName field, copy the contents for use later in this guide.
-
Press Esc twice to close both dialog boxes.
Download Utility.zip
-
On the machine that is as the Provision endpoint, navigate to the Provision module homepage in Tanium, click the settings wheel in the right-hand corner of the page.
-
Select the File Downloads tab, and click the utility.zip link. The file will download.
-
Navigate to the folder containing the file, right click on it, select Properties, select the Unblock option at the bottom of the properties dialog and click OK.
-
Extract the zip file.
Create ADK Content
-
To create the ADK content for Tanium, two Microsoft-provided installers are required – the Windows ADK and Windows PE add-on for the Windows ADK. You can download both from: https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install. Download the latest version available, regardless of the OS versions being deployed in your bundle
-
Download the two files.
-
After the download is complete, run adksetup.exe.
-
Accept the default install path, click Next twice, and accept the license agreement.
-
Select the Deployment Tools and User State Migration Tool (USMT) features. You can deselect all others.
-
Click Install. The content is downloaded and installed on the endpoint. Click Close when the installation is complete.
-
Run the adkwinpesetup.exe which was downloaded. Accept the default install path and click Next twice and accept the license agreement.
-
Click Install, the content is downloaded and installed on the endpoint. Click Close the installation is complete.
-
Launch an elevated PowerShell prompt on the endpoint.
-
Change directory into the directory where the utility.zip was extracted and then into the ADKPrep directory.
-
Set the execution policy on the machine to bypass to allow the script to run Set-ExecutionPolicy -ExecutionPolicy Bypass.
-
Execute the ADKPrep.ps1 script, allowing for AMD64 architecture, this takes several minutes to complete: .\ADKPrep.ps1 -Architecture amd64.
-
After the script completes, the ADK zip is created in the Documents folder of the account that is running the PowerShell script. It is now ready to use with the Provision bundle.
Download the Tanium Client
The Tanium Client is automatically installed by Provision when an operating system is deployed, it must be uploaded to the bundle to be assigned.
-
Open the Tanium console.
-
Navigate to Administration > Client Management
-
Open client Configurations from Quick links.
-
Click the download arrow for the relevant configuration bundle. A zip file downloads. Save this to use when you create the bundle.
Create the OS Bundle
The OS bundle in Provision is the content, which is to the machine being built, the operating system, the Tanium client, drivers, and unattend files, etc.
-
Navigate to the Provision module, click Create OS Bundle in Quick Links, this will take you to a page to create the bundle.
-
Specify a name for the bundle, such as Windows 10 Enterprise.
-
Specify the platform as Windows, the Operating system as Windows Workstation and the Architecture as x64.
-
Next, select the WIM to be used for the build, this is located in the sources directory on a Windows ISO, and is named install.wim. Click Browse for File and select the WIM.
-
Select the appropriate image index for the uploaded file. Determine this using the dism.exe command, such as:
dism.exe /Get-ImageInfo /imagefile:install.wim
In this instance the Enterprise index (3) is required.
-
Next, upload the ADK bundle that you previously created. In the ADK Files section, click Browse for file, navigate to the Documents folder and select adk_amd64.zip.
-
Next, the unattended xml is uploaded. In the Unattended XML section, click Browse for file. Navigate to the folder containing the extracted Utility.zip file. Open the Unattend folder and select unattend_64.xml.
-
Next, upload the Tanium client installation zip. In the Tanium Client Installation Files section, click Browse for file and navigate to the folder containing the downloaded Tanium Client installation zip. Select it and upload.
-
In this example, no scripts, drivers or patches are added, further details on these are provided in the References section at the end of this document.
-
Now, add key value entries for Computer name and domain join configuration. Scroll to the Key Value entries section of the page. Click Add and add the following:
-
Key: ComputerName
-
Value: { "parameterType": "com.tanium.components.parameters::TextInputParameter", "label": "Computer Name", "helpString": "Specify the name to assign to the computer." }
-
Key: ODJService
-
Value: https://ipOfProvisionEndpoint:8100/getblob
-
Key: DomainName
-
Value: Active directory domain name where the computer account will be created, such as lab.local
-
Key: OU
-
Value: the distinguishedName previously captured when the OU for computer objects was created, in this case ‘OU=ProvisionQuickStart,DC=lab,DC=local’
-
-
Click Save and confirm. The bundle content uploads to the Tanium server. This may take a few minutes to complete.
-
After the upload is complete, the Tanium service must process the bundle before it can be assigned to a provision endpoint. While processing is taking place, the status icon for the bundle will be a dotted circle. After the processing is complete, it changes to a yellow triangle warning you that it is not yet assigned to a Provision endpoint.
Enable Provision Endpoint and Assign a Bundle
In this procedure, the newly created Satellite is configured as a Provision endpoint. This starts the process of downloading the Provision service to the endpoint.
-
Navigate to Modules -> Provision.
-
Choose Provision Endpoints from the Quick Links list.
-
Click Create Provision Endpoint.
-
Select the check box next to the Satellite which was created previously and enable all three of the Features checkboxes. (Preboot Execution Environment, Content Caching and Offline Domain Join).
-
Check the box next to the newly created OS bundle and click Save and Deploy Now.
-
The endpoint will shortly begin to download the Provision service and the bundle content assigned to it
Check If the Bundle Content has Downloaded
Currently, checking if bundle content has downloaded is a manual process. (Sensors are planned to improve this process). The bundle content is downloaded into the TC\Tools\Provision\Cache folder.
In this folder, you will see several files. Provision deduplicates files to avoid downloading and storing the same file repeatedly. Therefore, the files are named by their SHA256 hash value, rather than the file. The manifest.json file, in the cache folder, maps the relationship between the file hash and actual file name.
If you enable the verbose logging option for Provision (you can track the progress of each file download in the TC\Tools\Provision\logs\TaniumPXE.log file. Look for entries similar to the following.
For this example, you only need to verify the number of files in the Cache folder. The files are not moved to that folder until they have been downloaded in their entirety by the Tanium Client. In addition to the default folder and manifest file, there should be four other items (the WIM, Tanium Client, ADK and Unattended files):
To enable Verbose logging, open the Provision module and select Settings > Configuration, Verbose Logging.
Test the Build
-
After the bundle has downloaded to the Provision endpoint, you can start testing. The exact configuration of a VM will vary from environment to environment. However, the following configuration items must be set:
-
Boot from network adapter
-
Secure boot disabled
-
VLAN (if in use) must be the same as the Provision endpoint (or you have configured the relevant DHCP options
-
-
Start the VM. You will see the VM boot from network and send network activity on the Provision endpoint.
-
After the VM has loaded the preboot environment over the network, you will be presented with a Welcome screen. You can choose keyboard languages, and launch an onscreen keyboard for provisioning devices without a physical keyboard. Click Next.
-
You can now choose which bundle to apply and which disk to apply it to, in this case, we only have a single bundle and disk. Click Choose.
-
You are now prompted for a Computer name. Fill this out and click Begin. It must be unique in the domain.
-
At this point the disk will be wiped and new partitions created. The domain join service will create the computer account in AD
The installation files are downloaded. The endpoint will reboot several times while the endpoint installs
-
The Tanium client is automatically installed as part of the process, and will register with your Tanium service automatically, and begin functioning and installing assigned software using Deploy and Patch, applying updates. The operator can log into the machine with an AD account.
References
-
For physical hardware driver bundles that might be required, see Configure a Windows OS bundle. Also, you can use the Export-WindowsDriver PowerShell command to export all installed third-party drivers from a reference system if suitable driver packs are not available.