OSD Module
The OSD module is a maintained PowerShell module that provides WinPE-based Windows deployment and is the original home of OSDCloud (v1).
For OSDCloud deployments, use the OSDCloud module instead of OSD. The OSDCloud module supersedes the OSDCloud v1 implementation in OSD. The OSD module is maintained but the OSDCloud module is preferred for all new work.
Publisher
Community / David Segura
Platform
WinPE
Architecture
amd64 / arm64
Status
Maintained (OSDCloud v1 / legacy)
Functions Documented
346
Overview
The OSD module was the original host of OSDCloud. The OSDCloud functionality was later extracted into the dedicated OSDCloud module, which is the current, recommended choice for all new deployments. The OSD module continues to be maintained and is required for environments that have existing OSDCloud v1 workflows or scripts built against it. For any new deployment project, start with the OSDCloud module.
When to Use the OSD Module
Your existing scripts use
Start-OSDCloudor other OSD-based OSDCloud v1 commandsYour WinPE image was built with OSD-based tooling and you have not yet migrated
You have a specific OSD function dependency outside of OSDCloud v1
Install
Related
OSDCloud Module — Current, recommended module for OSDCloud deployments
OSDeploy Module — Boot image creation on Windows 11
Functions
The OSD module exports a large public function set. Use the groups below to find each function reference page.
Add Functions
Adds 7-Zip command-line binaries to a mounted Windows image.
Adds a Servicing Stack Update package to Windows.
Backup Functions
Captures a physical disk to a Full Flash Update (FFU) image.
Saves available BitLocker key materials to one or more folders.
Block Functions
Blocks execution if the current user has Administrator rights
Blocks execution if the computer is not manufactured by Lenovo
Blocks execution if curl.exe is not available
Blocks execution if internet connectivity is not available
Blocks execution if PowerShell version is less than 5
Blocks execution if the current user does not have Administrator rights
Blocks execution if Windows ReleaseId is less than 1703
Blocks execution if Windows major version is not 10
Blocks execution if the system is not running WinPE
Blocks execution if the system is running WinPE
Clear Functions
Clears LocalDisk data or state.
Clears USBDisk data or state.
Connect Functions
Connect to Azure and initialize OSDCloudAzure session state.
Convert Functions
Expands an ESD file into a Windows setup folder structure.
Converts an ESD file into an ISO image.
Converts an ESD file into a WIM image.
Creates an ISO file from a source folder.
Extracts GUID values from a PNP Device ID string.
ConvertTo Functions
Converts a value to an Azure Key Vault Secret
Copy Functions
Creates a bootable USB drive from a Windows ISO.
Copies PowerShell modules to a destination module path.
Copies PowerShell modules into an offline Windows image.
Copies PowerShell modules to a mounted Windows image
Copies the Windows Recovery Environment WIM to the specified DestinationDirectory
Dismount Functions
Dismounts MyWindowsImage and finalizes changes.
Edit Functions
Adds PowerShell and PowerShell Gallery support to ADK's x64 winpe.wim
Edits MyWindowsImage content.
Mounts and edits a WinPE WIM file
Edits content by using Edit-OSDCloudWinPE.
Enable Functions
Enables ODT Support in an OSDCloud Workspace
Enables PowerShell Gallery functionality in a WinPE WIM file
Enables PowerShell Gallery in a mounted Windows image
Configures driver pack expansion during Windows Specialize phase
Expand Functions
Expands staged driver pack archives during Windows Setup
Expands driver packs during Lite Touch or Zero Touch deployment
Export Functions
Exports selected LocalMachine certificates as .reg files.
Find Functions
No synopsis provided.
No synopsis provided.
No synopsis provided.
No synopsis provided.
Searches files for matching text and displays selectable results.
Searches module files for matching text.
Get Functions
Read a secret value from the Azure clipboard Key Vault.
Initialize the local OSDCloud Azure workspace.
Find Azure AD users for an OSD tech identifier prefix.
Returns CIM video controller resolution entries for the system display adapter.
Read a secret from Azure Key Vault.
Lists registered COM ProgIDs from the local machine registry.
Gets Microsoft Update automatic update settings through COM.
Creates and returns the Microsoft Update installer COM object.
Gets Windows Update service registration details through COM.
Gets DataDisk information.
Returns the Application Component of the Dell System Catalog
Returns the BIOS Component of the Dell System Catalog
Returns the Driver Component of the Dell System Catalog
Returns the Dell DriverPack Catalog
Returns the Firmware Component of the Dell System Catalog
Builds the Dell System Catalog
Returns the URL of the latest Dell WinPE 10 Driver Pack
Returns the URL of the latest Dell WinPE 11 Driver Pack
Returns all display screens on the system
Returns the primary display bitmap size accounting for DPI scaling
Returns the primary display monitor size in pixels
Returns the DPI scaling percentage of the primary display
Returns the virtual screen dimensions covering all displays
Gets a list of links to download
Returns the latest matching Windows enablement package metadata.
Returns the latest matching Windows client feature update record.
Retrieves content from GitHub or Gist raw URLs.
Resolves a GitHub or Gist URL to one or more raw content URLs.
Returns the 'Accessories Firmware and Driver' Component of the HP System Catalog
Returns the BIOS Component of the HP System Catalog
No synopsis provided.
Returns the Driver Component of the HP System Catalog
Returns the HP DriverPack Catalog
Gets the latest available HP driver pack for a platform.
Returns the Firmware Component of the HP System Catalog
No synopsis provided.
No synopsis provided.
No synopsis provided.
Gets supported Windows releases for an HP platform from the HPIA catalog.
Converts the HP Platform list to a PowerShell Object.
Gets HPIA SoftPaq items for a specific HP platform and OS release.
Gets the latest HPIA SoftPaq list for an HP platform.
Returns the Software Component of the HP System Catalog
Converts the HP Client Catalog for Microsoft System Center Product to a PowerShell Object
Determines which HP TPM firmware update package is required for the current device.
Returns the URL of the latest HP WinPE 10 Driver Pack
No synopsis provided.
Returns the Intel Ethernet Driver Object
Returns the Intel Graphics Driver Object
Returns the Intel Radeon Graphics Driver Object
Returns the Intel Wireless Driver Object
Builds the Lenovo Bios Catalog
Returns the Lenovo DriverPack Catalog
Gets LocalDisk information.
Gets LocalDiskPartition information.
Gets LocalDiskVolume information.
Retrieves Microsoft updates from the Microsoft Update Catalog
Retrieves updates for a specific Windows operating system version from Microsoft Update Catalog
Gets MyBiosSerialNumber information.
Gets MyBiosUpdate information.
Gets MyBiosVersion information.
Returns BitLocker key protector details for encrypted volumes.
Gets MyComputerManufacturer information.
Gets MyComputerModel information.
Gets MyComputerProduct information.
Returns the Default AU Service from Microsoft.Update.ServiceManager
Returns the latest compatible Dell BIOS update for the current system.
Retrieves the driver pack for the current computer from OSDCloud
Gets MyWindowsCapability information.
Gets MyWindowsPackage information.
Gets NativeMatchineImage information.
Displays information about the OSD Module
Returns CimInstance information from common OSD Classes
Discover OSDCloud Azure Storage resources.
Gets the OSDCloud DriverPack for the current or specified computer model
Returns the DriverPacks used by OSDCloud
Gets OSDCloud operating system entries for a specific architecture.
Returns OSDCloud operating system index entries by architecture.
Returns OSDCloud operating system index map entries by architecture.
Returns the Operating Systems names used by OSDCloud
Gets information returned by Get-OSDCloudTemplate.
Gets information returned by Get-OSDCloudTemplateNames.
Gets the OSDCloudVM Module defaults from $Global:OSDModuleResource.NewOSDCloudVM
Gets information returned by Get-OSDCloudVMSettings.
Gets information returned by Get-OSDCloudWorkspace.
Returns cached OSDCloud content found on local file system drives.
Returns OSDCloud cache drive metadata from local file system drives.
Returns OSDCloud cache paths located on USB drives.
Retrieves disk objects suitable for OS deployment with enhanced filtering capabilities.
Downloads and parses the Dell driver pack catalog for Windows 11.
Downloads and parses the HP driver pack catalog for Windows 11.
Downloads and parses the Lenovo driver pack catalog for Windows 11.
No synopsis provided.
Retrieves the Microsoft Surface driver pack catalog, enriching entries from live download pages.
Retrieves driver pack information for the specified manufacturer and operating system architecture.
Returns a single Recast Core license object.
Gets the core operating system catalog entries that OSD uses for offline media selection.
Gets OSDDisk information.
Returns common OSD information as an ordered hash table
Gets OSDHelp information.
Retrieves metrics for the OSD PowerShell module and OSDCloud deployment methods.
Returns the OSD module cache directory path.
Returns the base path of the loaded OSD module.
Returns the version of the loaded OSD module.
Gets information returned by Get-OSDPad.
Gets OSDPartition information.
Displays Power Plan information using powercfg /LIST
Gets OSDVolume information.
Gets OSDWinEvent information.
No synopsis provided.
Gets the active power plan monitor-off timeout in minutes.
Development function to get the contents of a PSCloudScript.
Returns information from the Windows Recovery Agent XML file
Returns the Registry Key values from HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Gets ScreenPNG information.
Returns the Session.xml Updates that have been applied to an Operating System
This function checks for the presence of an OSDCloud SetupComplete Folder on any drive other than 'C'.
Returns the Microsoft Surface DriverPack Catalog
Returns the system firmware device
Returns the GUID of the system firmware resource
Retrieves the latest system firmware update from Microsoft Update Catalog
No synopsis provided.
Gets USBDisk information.
Gets USBPartition information.
Gets USBVolume information.
No synopsis provided.
No synopsis provided.
No synopsis provided.
Retrieves the installation path of the Windows Assessment and Deployment Kit (ADK)
Retrieves the installed version of the Windows Assessment and Deployment Kit (ADK)
Retrieves the command paths of the Windows Assessment and Deployment Kit (ADK).
Retrieves the installation path of the Windows Kit directory.
No synopsis provided.
No synopsis provided.
Returns an Array of Microsoft Updates from the Microsoft Update Catalog
Retrieves the Windows Recovery Environment partition information
Returns an Array of Microsoft Updates
Import Functions
Imports OSDCloud CloudDrivers into an MDT Deployment Share
Imports OSDCloud CloudDrivers into an MDT Deployment Share
Initialize Functions
Initializes the OSDCloud startnet environment.
No synopsis provided.
Collects local hardware, firmware, TPM, and network details for OSDCloud.
Install Functions
Install prerequisite IaC tooling for OSDCloud Azure.
No synopsis provided.
No synopsis provided.
Installs or updates the HP Client Management Script Library (HPCMSL) PowerShell module.
Downloads and installs the system firmware update
Invoke Functions
Deploy OSDCloud Azure infrastructure with Bicep or Terraform.
Invoke a secret retrieved from Azure Key Vault.
Runs an external command.
No synopsis provided.
No synopsis provided.
No synopsis provided.
Creates and synchronizes an offline HPIA repository for the local HP platform.
Downloads and applies the HP SP94937 softpaq to downgrade a TPM from 2.0 to 1.2.
Downloads and extracts the required HP TPM firmware update softpaq using HPCMSL.
Downloads the required HP TPM firmware EXE to C:\OSDCloud\HP\TPM.
Extracts and installs the HP TPM firmware update from C:\OSDCloud\HP\TPM.
Parses a date string from Microsoft Update Catalog format
This is the master OSDCloud Task Sequence
Downloads a matching DriverPack to %OSDisk%\Drivers
Downloads a matching DriverPack to %OSDisk%\Drivers
Uses DISM in WinPE to expand and apply Driver Packs
Starts an OSDCloud in-place upgrade workflow.
Displays OSD information, useful in an OS Deployment
No synopsis provided.
No synopsis provided.
Invokes SelectDataDisk actions.
Invokes SelectFFUDisk actions.
Invokes SelectLocalDisk actions.
Invokes SelectLocalVolume actions.
Invokes SelectOSDDisk actions.
Invokes SelectOSDVolume actions.
Invokes SelectUSBDisk actions.
Invokes SelectUSBVolume actions.
Executes a PowerShell script from a URL.
Mount Functions
Mounts MyWindowsImage for servicing.
New Functions
Creates an ADK CopyPE working directory
Creates an ISO file from a bootable media directory using ADK tools
Creates BootableUSBDrive resources.
Creates a CAB file from a Directory
Creates an OSDCloud bootable ISO from an OSDCloud workspace.
Builds Windows setup media content for an OSDCloud feature update.
Creates resources by using New-OSDCloudTemplate.
Creates resources by using New-OSDCloudUSB.
Creates resources by using New-OSDCloudUSBSetupCompleteTemplate.
Creates resources by using New-OSDCloudVM.
Creates resources by using New-OSDCloudWorkspace.
Creates resources by using New-OSDCloudWorkspaceSetupCompleteTemplate.
Creates System | OS | Recovery Partitions for MBR or UEFI Drives in WinPE
Creates an ISO file from a bootable media directory using ADK
Remove Functions
Removes AppxOnline items.
Reset Functions
Resets configuration by using Reset-OSDCloudVMSettings.
Resolve Functions
Resolves a short Microsoft aka.ms or fwlink URL.
Save Functions
Saves ClipboardImage content.
Downloads a matching Windows enablement package.
Downloads the latest matching Windows client feature update package.
Downloads driver updates from Microsoft Update Catalog
Downloads updates from Microsoft Update Catalog for a specific Windows version
Saves BitLocker external key protectors (.BEK) to destination folders.
Saves BitLocker key packages to destination folders.
Saves BitLocker recovery passwords to text files.
Downloads the latest compatible Dell BIOS update to a local folder.
Downloads and extracts the Dell Flash64W BIOS utility.
Downloads and optionally expands the driver pack for the current computer
Downloads and extracts the latest system firmware update.
Downloads a file from the internet and returns a Get-Item Object
Download and expand WinPE Drivers
Downloads the driver pack for a computer during MDT/ConfigMgr task sequence
Select Functions
Selects Autopilot Profiles
Selects Office Configuration Profiles
No synopsis provided.
Selects Office Configuration Profiles
Set Functions
Write the current clipboard text to the Azure clipboard Key Vault.
No synopsis provided.
Sets the Windows Boot Manager timeout value in BCD.
Captures a screenshot and copies it to the clipboard
Convert content to an Azure Key Vault secret.
Sets the primary display screen resolution.
No synopsis provided.
No synopsis provided.
No synopsis provided.
No synopsis provided.
Sets configuration values by using Set-OSDCloudTemplate.
No synopsis provided.
No synopsis provided.
No synopsis provided.
No synopsis provided.
Sets configuration values by using Set-OSDCloudVMSettings.
Sets configuration values by using Set-OSDCloudWorkspace.
No synopsis provided.

