Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Test-OfficePowerPoint

Module
PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointDocument System.String[]
Outputs
OfficeIMO.PowerPoint.PowerPointInspectionReport

Inspects a live or saved presentation without changing or reopening a supplied document.

Syntax

Test-OfficePowerPoint
[-Document <PowerPointDocument>]
[-Options <Object[]>]
[<CommonParameters>]
#
Parameter set: Document
Test-OfficePowerPoint
[-Options <Object[]>]
[-Password <SecureString>]
[-Path] <String[]>
[-ThrottleLimit <Int32>]
[<CommonParameters>]
#
Parameter set: Path
Test-OfficePowerPoint
-LiteralPath <String[]>
[-Options <Object[]>]
[-Password <SecureString>]
[-ThrottleLimit <Int32>]
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Inspect presentation files with literal names.

Get-ChildItem ./Publish -Filter *.pptx | Test-OfficePowerPoint

Include feature and visual evidence for an unsaved deck.

$policy = New-OfficePowerPointInspectionOptions -Features -Visuals
Test-OfficePowerPoint -Document $deck -Options $policy

Parameters

-Document PowerPointDocument optionalpipeline: True (ByValue)sets: Document
Gets or sets a live document; omission uses the enclosing presentation block.
-Options Object[] optional
Gets or sets inspection, native format or Reader policy objects, including hashtables.
-Password SecureString optionalsets: Path, LiteralPath
Gets or sets the password for opening saved presentations.
-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path
Gets or sets input paths with provider wildcard expansion.
-ThrottleLimit Int32 optionalsets: Path, LiteralPath
Gets or sets the maximum number of concurrent background operations.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Gets or sets input paths without wildcard expansion, binding FileInfo.FullName and provider PSPath.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.