API Reference
Command
Import-ManagedModuleRepository
Imports managed module repository profiles from a non-secret profile file.
Remarks
Imports managed module repository profiles from a non-secret profile file.
Examples
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 SetsParameters
- Force SwitchParameter
- Replaces existing managed repository profiles with matching names.
- PassThru SwitchParameter
- Returns imported profiles. The command is quiet by default, like Import-PSGetRepository.
- Path String
- Path to a profile file exported by Get-ManagedModuleRepository -ExportPath.
- Scope ModuleRepositoryProfileScope
- Profile store scope to import into.
- Possible values:
User,Machine,All
Outputs
PSPublishModule.ModuleRepositoryProfileResult: User-facing private module repository profile saved by PSPublishModule.