# Update-ManagedModule

Updates installed PowerShell modules through the managed C# module engine.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`System.String[]`

**Outputs**

`PowerForge.ManagedModuleUpdateResult` `PowerForge.ManagedModuleUpdatePlan`

Updates installed PowerShell modules through the managed C# module engine.

## Syntax

```
Update-ManagedModule
[-AcceptLicense]
[-AllowClobber]
[-AllowedAuthor <String[]>]
[-AllowLoadedModuleUpdate]
[-AuthenticodeCheck]
[-Credential <PSCredential>]
[-CredentialSecret <String>]
[-CredentialSecretFilePath <String>]
[-CredentialUserName <String>]
[-DependencyConcurrency <Int32>]
[-ExpectedPackageSha256 <String>]
[-FamilyModuleName <String[]>]
[-FamilyModuleNamePrefix <String>]
[-FamilyName <String>]
[-FamilyPolicy <ManagedModuleFamilyPolicy>]
[-Force]
[-LoadedModule <ManagedModuleLoadedModule[]>]
[-MaximumVersion <String>]
[-MinimumVersion <String>]
[-ModuleRoot <String>]
[[-Name] <String[]>]
[-PackageCacheDirectory <String>]
[-Plan]
[-Prerelease]
[-ProfileName <String>]
[-Proxy <Uri>]
[-ProxyCredential <PSCredential>]
[-Quiet]
[[-Repository] <String>]
[-RepositoryName <String>]
[-RequireSourceMatch]
[-RequireTrustedRepository]
[-Scope <CurrentUser|AllUsers|Custom>]
[-ShellEdition <Auto|Desktop|Core>]
[-ShowSummary]
[-SkipDependencyCheck]
[-SourcePolicy <ManagedModuleSourcePolicy>]
[-TrustPolicy <ManagedModuleTrustPolicy>]
[-Version <String>]
[-VersionPolicy <String>]
[<CommonParameters>]
```

[#](#member-5ea62dc3ddeb24fbdf9aeb4a)

Parameter set: `All Parameter Sets`

## Description

This command provides the module-update functionality of Update-PSResource. It inspects the selected module root and updates only when the repository contains a newer selected version, or installs a named target when the selected scope has no copy. When Name is omitted, all installed modules in the selected roots are considered. Hash-constrained pipeline input is buffered and validated as one package target before any update starts.

## Examples

### Update a module in the current user's module path

```powershell
Update-ManagedModule -Name Company.Tools
```

### Update a module in an explicit module root from a local feed

```powershell
Update-ManagedModule -Name Company.Tools -Repository C:\Packages -Path C:\Modules
```

### Preview updates for every module in the current-user root

```powershell
Update-ManagedModule -Scope CurrentUser -Plan
```

## Parameters

**-AcceptLicense SwitchParameter optional**

Accept package licenses when packages declare license acceptance is required.

**-AllowClobber SwitchParameter optional**

Allow command exports to overlap with other modules in the target root.

**-AllowedAuthor String[] optionalaliases: RequiredAuthor, TrustedAuthor**

Allowed package author values from package metadata.

**-AllowLoadedModuleUpdate SwitchParameter optional**

Allow updating even when a matching module is loaded in the current session or supplied as evidence.

**-AuthenticodeCheck SwitchParameter optional**

Validate Authenticode signatures for signable package files before promotion.

**-Credential PSCredential optional**

Optional repository credential.

**-CredentialSecret String optionalaliases: Password, Token**

Optional repository credential secret.

**-CredentialSecretFilePath String optionalaliases: CredentialPath, TokenPath**

Optional path to a file containing the repository credential secret.

**-CredentialUserName String optionalaliases: UserName**

Optional repository credential username.

**-DependencyConcurrency Int32 optional**

Maximum number of dependency branches to install concurrently during update delivery. Omit to use the managed engine default.

**-ExpectedPackageSha256 String optionalaliases: PackageSha256, Sha256**

Expected SHA256 hash of the requested module package before it is extracted and promoted.

**-FamilyModuleName String[] optional**

Exact installed module names that belong to the family.

**-FamilyModuleNamePrefix String optional**

Module name prefix used to discover installed family members.

**-FamilyName String optional**

Friendly family policy name used in plans and diagnostics.

**-FamilyPolicy ManagedModuleFamilyPolicy optional**

Typed family policy used to keep related installed modules version-coherent.

**-Force SwitchParameter optional**

Reinstall the target version when it is already installed.

**-LoadedModule ManagedModuleLoadedModule[] optional**

Additional loaded module evidence used with modules detected automatically in the current PowerShell session.

**-MaximumVersion String optional**

Maximum target version when Version is omitted.

**-MinimumVersion String optional**

Minimum target version when Version is omitted.

**-ModuleRoot String optionalaliases: Path**

Explicit module root. When supplied, the command updates that root.

**-Name String[] optionalposition: 0pipeline: True (ByValue, ByPropertyName)aliases: ModuleName**

Module names to update.

**-PackageCacheDirectory String optional**

Optional package cache directory.

**-Plan SwitchParameter optional**

Return an inspectable update plan without writing files.

**-Prerelease SwitchParameter optionalaliases: AllowPrerelease**

Include prerelease versions when resolving the latest version.

**-ProfileName String optional**

Saved repository profile name.

**-Proxy Uri optional**

Optional HTTP proxy used for repository requests.

**-ProxyCredential PSCredential optional**

Optional proxy credential used with Proxy.

**-Quiet SwitchParameter optional**

Suppress optional host summaries and progress-style output without changing pipeline result objects.

**-Repository String optionalposition: 1aliases: RepositoryUri, Source**

Repository URL, NuGet v3 service index, flat-container URL, or local folder feed.

**-RepositoryName String optional**

Friendly repository name used in output.

**-RequireSourceMatch SwitchParameter optional**

Require installed source evidence to match the requested repository before reporting up to date.

**-RequireTrustedRepository SwitchParameter optional**

Require the selected repository profile to be marked trusted.

**-Scope ManagedModuleInstallScope optional**

Scope to inspect and update when ModuleRoot is not supplied.

Possible values: `CurrentUser`, `AllUsers`, `Custom`

**-ShellEdition ManagedModuleShellEdition optional**

PowerShell path family used when resolving default CurrentUser or AllUsers module roots.

Possible values: `Auto`, `Desktop`, `Core`

**-ShowSummary SwitchParameter optional**

Write a compact Spectre.Console summary for each plan or result.

**-SkipDependencyCheck SwitchParameter optionalaliases: SkipDependenciesCheck**

Skip installing dependencies declared by the package.

**-SourcePolicy ManagedModuleSourcePolicy optional**

Typed source policy used to require managed receipt evidence from the requested repository.

**-TrustPolicy ManagedModuleTrustPolicy optional**

Optional typed repository/package trust policy.

**-Version String optionalaliases: RequiredVersion**

Exact target version. When omitted, the latest repository version is used.

**-VersionPolicy String optional**

NuGet-style version range policy used when Version is omitted.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:ABD8E96B4EBA2AD42CF6B5E243F2809CF437551A4BC25D808630AF08CC6A593A -->
