| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Gets installed PowerShell modules from managed module inventory.
Get-ManagedModule [[-Name] <string[]>] [-ModulePath <string[]>] [-Version <string>] [-Scope <string>] [-IncludeLoaded] [-AsInventory] [-AsJson] [-ShowSummary] [<CommonParameters>]Get-ManagedModule [[-Name] <string[]>] -Path <string> [-Version <string>] [-Scope <string>] [-IncludeLoaded] [-AsInventory] [-AsJson] [-ShowSummary] [<CommonParameters>]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.
Get-ManagedModuleGet-ManagedModule -Name Microsoft.Graph.* -IncludeLoaded -ShowSummaryGet-ManagedModule -Name Company.Tools -Version 1.2.0 | Uninstall-ManagedModule -WhatIfReturn the full inventory object instead of installed module rows.
Type: SwitchParameter
Parameter Sets: Local, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueReturn JSON instead of typed objects.
Type: SwitchParameter
Parameter Sets: Local, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueInclude modules loaded in the current runspace as inventory evidence.
Type: SwitchParameter
Parameter Sets: Local, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueExplicit module roots to scan. When omitted, PSModulePath is used.
Type: String[]
Parameter Sets: Local
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOptional module name filters. Wildcards are supported.
Type: String[]
Parameter Sets: Local, Path
Aliases: ModuleName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TruePath to a module install root or previously written inventory JSON artifact.
Type: String
Parameter Sets: Path
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueModule installation scope to return.
Type: String
Parameter Sets: Local, Path
Aliases: None
Possible values: CurrentUser, AllUsers
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWrite a compact Spectre.Console inventory summary.
Type: SwitchParameter
Parameter Sets: Local, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueExact module version or explicit version range to return.
Type: String
Parameter Sets: Local, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
System.String[]
PSPublishModule.ModuleStateInstalledModuleResult PSPublishModule.ModuleStateInventoryResult System.String
- None