Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.186
Language: C# Updated: 2026-11-04
Command

Test-IsolatedModuleProfile

Module
PSPublishModule
Inputs
None
Outputs
PowerForge.IsolatedModuleProfileValidationResult System.Boolean

Validates a curated isolated module profile without importing it.

Syntax

Test-IsolatedModuleProfile
[-Name <String>]
[-Path <String>]
[-Profile] <String>
[-Quiet]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Test-IsolatedModuleProfile resolves the selected profile and module source, validates the profile's minimum version, checks the expected script, manifest, binary, dependency, and support files, and returns a detailed validation result without copying or importing the generated wrapper.

Examples

Validate the newest visible ExchangeOnlineManagement profile source

Test-IsolatedModuleProfile -Profile ExchangeOnlineManagement

Resolves ExchangeOnlineManagement from PSModulePath and returns validation details.

Validate a specific Graph Authentication manifest

Test-IsolatedModuleProfile -Profile MicrosoftGraphAuthentication -Path 'C:\Modules\Microsoft.Graph.Authentication\2.37.0\Microsoft.Graph.Authentication.psd1' | Format-List *

Uses the supplied manifest path as the source manifest and its parent as the module base.

Return only a Boolean result

Test-IsolatedModuleProfile -Profile MicrosoftTeams -Quiet

Returns True when the resolved profile source passes validation; otherwise returns False.

Parameters

-Name String optional
Optional module name override. When omitted, the profile's module name is used.
-Path String optional
Optional module base path or manifest path. When omitted, the profile module is resolved from PSModulePath.
-Profile String requiredposition: 0
Name of the built-in isolation profile to validate.
-Quiet SwitchParameter optional
Return only a Boolean validation result.

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.