# Get-ManagedModule

Gets installed PowerShell modules from managed module inventory.

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**

`PSPublishModule.ModuleStateInstalledModuleResult` `PSPublishModule.ModuleStateInventoryResult` `System.String`

Gets installed PowerShell modules from managed module inventory.

## Syntax

```
Get-ManagedModule
[-AsInventory]
[-AsJson]
[-IncludeLoaded]
[-ModulePath <String[]>]
[[-Name] <String[]>]
[-Scope <CurrentUser|AllUsers>]
[-ShowSummary]
[-Version <String>]
[<CommonParameters>]
```

[#](#method-get-managedmodule-switchparameter-switchparameter-switchparameter-string-string-string-switchparameter-string)

Parameter set: `Local`

```
Get-ManagedModule
[-AsInventory]
[-AsJson]
[-IncludeLoaded]
[[-Name] <String[]>]
-Path <String>
[-Scope <CurrentUser|AllUsers>]
[-ShowSummary]
[-Version <String>]
[<CommonParameters>]
```

[#](#method-get-managedmodule-switchparameter-switchparameter-switchparameter-string-string-string-switchparameter-string-2)

Parameter set: `Path`

## Description

This command provides the installed-module functionality of Get-InstalledPSResource while reusing the same inventory engine that powers managed estate maintenance. It returns typed installed module rows by default; those rows can be piped directly to Uninstall-ManagedModule.

## Examples

### Inventory installed modules

```powershell
Get-ManagedModule
```

### Inventory loaded and installed Graph modules

```powershell
Get-ManagedModule -Name Microsoft.Graph.* -IncludeLoaded -ShowSummary
```

### Preview uninstalling an exact installed module

```powershell
Get-ManagedModule -Name Company.Tools -Version 1.2.0 | Uninstall-ManagedModule -WhatIf
```

## Parameters

**-AsInventory SwitchParameter optional**

Return the full inventory object instead of installed module rows.

**-AsJson SwitchParameter optional**

Return JSON instead of typed objects.

**-IncludeLoaded SwitchParameter optional**

Include modules loaded in the current runspace as inventory evidence.

**-ModulePath String[] optionalsets: Local**

Explicit module roots to scan. When omitted, PSModulePath is used.

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

Optional module name filters. Wildcards are supported.

**-Scope String optional**

Module installation scope to return.

Possible values: `CurrentUser`, `AllUsers`

**-ShowSummary SwitchParameter optional**

Write a compact Spectre.Console inventory summary.

**-Version String optional**

Exact module version or explicit version range to return.

**-Path String requiredsets: Path**

Path to a module install root or previously written inventory JSON artifact.

## 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).

## Outputs

PSPublishModule.ModuleStateInstalledModuleResult: PowerShell-facing installed module inventory entry. PSPublishModule.ModuleStateInventoryResult: PowerShell-facing module-state inventory result.

Evotec API Reference Copyright 2026 Evotec Services

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