API Reference
Test-IsolatedModuleProfile
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
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>]#All Parameter SetsParameters
- Name String
- Optional module name override. When omitted, the profile's module name is used.
- Path String
- Optional module base path or manifest path. When omitted, the profile module is resolved from PSModulePath.
- Profile String
- Name of the built-in isolation profile to validate.
- Quiet SwitchParameter
- Return only a Boolean validation result.
Outputs
PowerForge.IsolatedModuleProfileValidationResult, System.Boolean