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.169
Language: C# Updated: 2026-10-13

API Reference

Command

Test-IsolatedModuleProfile

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.IsolatedModuleProfileValidationResult System.Boolean

Validates a curated isolated module profile without importing it.

Remarks

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

Authored help example

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.

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.

Syntax

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

Parameters

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

Outputs

PowerForge.IsolatedModuleProfileValidationResult, System.Boolean