LogoLogo
  • Welcome
  • StifleR
  • 2PXE Server
  • iPXE WS
  • OSD Toolkit
  • DeployR
  • Introduction
    • Your DeployR guide
  • SETUP
    • Prerequisites
    • Installation
    • Securing
      • Entra ID authentication
      • Passcode authentication
      • Certificate authentication
      • Anonymous authentication
      • Other security settings
  • Generate Windows PE Boot Images
  • Generate Linux Boot Images
  • Configuring PXE booting
    • Using 2PXE
    • Using 2PXE with iPXE Anywhere Web Service
    • Using WDS or third-party PXE servers
  • Microsoft Graph API access
  • Getting Started
    • Creating a Content Item
      • Applications
      • Driver packs
      • Operating system
    • Creating a Task Sequence
    • Performing a Bare Metal Deployment
  • Starting a task sequence in an existing OS
  • Running a task sequence from Intune
  • Reference
    • Step Definitions
      • Apply ChromeOS Flex
      • Apply IGEL image
      • Apply operating system
      • Apply operating system from cloud
      • Capture image
      • Configure operating system
      • Enable Administrator account
      • Enable BranchCache
      • Format disk
      • Inject driver pack
      • Inject drivers
      • Inject drivers from cloud
      • Install application
      • Install multiple applications
      • Install updates
      • Offline domain join
      • Prepare for capture
      • Prepare operating system
      • Reboot
      • Run command line
      • Run PowerShell script
      • Run task sequence
      • Set variable
    • Task Sequence Templates
      • Windows bare metal
      • Windows bare metal from cloud
      • Windows build and capture
      • Autopilot from cloud
      • Autopilot pre-provisioning
      • ChromeOS Flex
      • IGEL 12
  • PowerShell Modules
  • Task Sequence Variables
Powered by GitBook
On this page
  1. Reference
  2. Step Definitions

Run PowerShell script

PreviousRun command lineNextRun task sequence

Last updated 1 month ago

LogoLogo

About

  • Let's connect
  • Engineering team
  • Our story
  • Blog
  • Events
  • Youtube

Products

  • Product overview
  • RecoveR
  • DeployR
  • OSD Toolkit
  • iPXE Anywhere
  • StifleR
  • CacheR
  • MOM
  • RemoteR

Support

  • Resources
  • Knowledge base
  • 2Pint Software support
  • FAQs

Pricing

  • Private sector
  • Public sector
  • Services

© Copyright 2025 2Pint Software | All rights reserved

CtrlK

The Run PowerShell script step will run either a specified file (e.g. "filename.ps1") or an inline script. In either case, you can specify parameters that are passed into the script when it is executed.

The inline script is edited using the same Monaco editing engine as is used in Visual Studio Code. Click the arrows icon at the top right of the script box to edit full screen, and again to reduce the size back to normal.

Note: If both script name and script values are populated, the script will be used.

When specifying an inline script, it will be saved to a file automatically before it is executed on the client, in order to properly handle parameter passing.

All output generated by the PowerShell script will automatically be captured by DeployR. Do not specify Start-Transcript or Stop-Transcript commands (they will fail).

To access the task sequence environment from within a script, import the DeployR.Utility module as shown above. That enables the TSEnv: and TSEnvList: drive providers.