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

Import-ManagedModuleRepository

Module
PSPublishModule
Inputs
None
Outputs
PSPublishModule.ModuleRepositoryProfileResult

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

Syntax

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

Examples

Example 1

Import-ManagedModuleRepository -Path 'C:\Path'

Parameters

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

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.

Outputs

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