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

Import-ManagedModuleRepository

Namespace PSPublishModule
Inputs
None
Outputs
PSPublishModule.ModuleRepositoryProfileResult

Imports managed module repository profiles from a non-secret profile file.

Remarks

Imports managed module repository profiles from a non-secret profile file.

Examples

Authored help example

EXAMPLE 1


Import-ManagedModuleRepository -Path 'C:\Path'
        

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

Import-ManagedModuleRepository [-Force] [-PassThru] -Path <String> [-Scope <User|Machine|All>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Force SwitchParameter optionalposition: namedpipeline: False
Replaces existing managed repository profiles with matching names.
PassThru SwitchParameter optionalposition: namedpipeline: False
Returns imported profiles. The command is quiet by default, like Import-PSGetRepository.
Path String requiredposition: 0pipeline: Falsealiases: RequiredResourceFile
Path to a profile file exported by Get-ManagedModuleRepository -ExportPath.
Scope ModuleRepositoryProfileScope optionalposition: namedpipeline: Falsevalues: 3
Profile store scope to import into.
Possible values: User, Machine, All

Outputs

PSPublishModule.ModuleRepositoryProfileResult: User-facing private module repository profile saved by PSPublishModule.