Skip to main content

Enable TPM

Summary

This document initializes TPM as part of the provisioning process for a Trusted Platform Module (TPM). Provisioning is the process of preparing a TPM for use. This guide covers the CW RMM implementation of Enable TPM.

Sample Run

Sample Run Image 1
Sample Run Image 2
Sample Run Image 3

Dependencies

SEC - Encryption - Script - Bitlocker - Enable TPM

User Parameters

NameExampleRequiredTypeDescription
AllowClear0/1FalseFlagIndicates that the provisioning process clears the TPM, if necessary, to move the TPM closer to complying with the latest Windows standards.
AllowPhysicalPresence0/1FalseFlagIndicates that the provisioning process may send physical presence commands that require a user to be present in order to continue.
AllowRestart0/1FalseFlagAllows the script to automatically restart or shut down the machine. This can happen during the initialization of TPM.

User Parameters Image

Task Creation

Create a new Script Editor style script in the system to implement this task.
Task Creation Image 1
Task Creation Image 2

Name: Enable TPM
Description: Initializes TPM as part of the provisioning process for a Trusted Platform Module (TPM). Provisioning is the process of preparing a TPM for use.
Category: Setup
Task Creation Image 3

Parameters

AllowClear

Add a new parameter by clicking the Add Parameter button present at the top-right corner of the screen.
AllowClear Image 1

This screen will appear.
AllowClear Image 2

  • Set AllowClear in the Parameter Name field.
  • Select Flag from the Parameter Type dropdown menu.
  • Click the Save button.
    AllowClear Image 3

AllowPhysicalPresence

Add a new parameter by clicking the Add Parameter button present at the top-right corner of the screen.
AllowPhysicalPresence Image 1

This screen will appear.
AllowPhysicalPresence Image 2

  • Set AllowPhysicalPresence in the Parameter Name field.
  • Select Flag from the Parameter Type dropdown menu.
  • Click the Save button.
    AllowPhysicalPresence Image 3

AllowRestart

Add a new parameter by clicking the Add Parameter button present at the top-right corner of the screen.
AllowRestart Image 1

This screen will appear.
AllowRestart Image 2

  • Set AllowRestart in the Parameter Name field.
  • Select Flag from the Parameter Type dropdown menu.
  • Click the Save button.
    AllowRestart Image 3

Task

Navigate to the Script Editor section and start by adding a row. You can do this by clicking the Add Row button at the bottom of the script page.
Task Image 1

A blank function will appear.
Task Image 2

Row 1 Function: PowerShell Script

Search and select the PowerShell Script function.
Row 1 Function Image 1
Row 1 Function Image 2

The following function will pop up on the screen:
Row 1 Function Image 3

Paste in the following PowerShell script and set the Expected time of script execution in seconds to 300 seconds. Click the Save button.

PowerShell Script

Row 1 Function Image 4

Row 2 Function: Script Log

Add a new row by clicking the Add Row button.
Row 2 Function Image 1

A blank function will appear.
Row 2 Function Image 2

Search and select the Script Log function.
Row 2 Function Image 3

The following function will pop up on the screen:
Row 2 Function Image 4

In the script log message, simply type %Output% and click the Save button.
Row 2 Function Image 5

Click the Save button at the top-right corner of the screen to save the script.
Row 2 Function Image 6

Completed Script

Completed Script Image

Output

  • Script Log
    Output Image

Changelog

2025-04-10

  • Initial version of the document