For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-CAB

Creates a CAB file from a Directory

Property
Value

Module

OSD

Platform

WinPE (amd64 / arm64)

Description

Creates a CAB file from a Directory

Syntax

New-CAB [-SourceDirectory] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]

Parameters

Parameter
Type
Required
Description

-SourceDirectory

String

True

Directory to create the CAB from

Examples

Example

New-CAB -SourceDirectory C:\DeploymentShare\OSDeploy\OSConfig
Creates LZX High Compression CAB from of C:\DeploymentShare\OSDeploy\OSConfig
Saves file in Parent Directory C:\DeploymentShare\OSDeploy\OSConfig.cab

Last updated

Was this helpful?