Command
Import-ManagedModuleRepository
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 SetsExamples
Example 1
Import-ManagedModuleRepository -Path 'C:\Path'Parameters
- -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
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.