| external help file | System.Management.Automation.dll-Help.xml |
|---|---|
| Locale | en-US |
| Module Name | Microsoft.PowerShell.Core |
| ms.date | 10/15/2020 |
| online version | https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-pssubsystem?view=powershell-7.6&WT.mc_id=ps-gethelp |
| schema | 2.0.0 |
| title | Get-PSSubsystem |
Retrieves information about the subsystems registered in PowerShell.
Get-PSSubsystem [<CommonParameters>]
Get-PSSubsystem -Kind <SubsystemKind> [<CommonParameters>]
Get-PSSubsystem -SubsystemType <Type> [<CommonParameters>]
Retrieves information about the subsystems registered in PowerShell.
Note
This is an experimental feature. This cmdlet is only available when the PSSubsystemPluginModel
feature is enabled. For more information, see
Using Experimental Features.
The feature makes it possible to separate components of System.Management.Automation.dll into
individual subsystems that reside in their own assembly. This separation reduces the disk footprint
of the core PowerShell engine and allows these components to become optional features for a minimal
PowerShell installation.
Currently, only the CommandPredictor subsystem is supported. This subsystem is used along with
the PSReadLine module to provide custom prediction plugins. In future, Job,
CommandCompleter, Remoting and other components could be separated into subsystem assemblies
outside of System.Management.Automation.dll.
Get-PSSubsystemKind SubsystemType IsRegistered Implementations
---- ------------- ------------ ---------------
CommandPredictor ICommandPredictor False {}
PS> Get-PSSubsystem -Kind CommandPredictor | Format-ListKind : CommandPredictor
SubsystemType : System.Management.Automation.Subsystem.ICommandPredictor
AllowUnregistration : True
AllowMultipleRegistration : True
RequiredCmdlets : {}
RequiredFunctions : {}
IsRegistered : False
Implementations : {}
Specifies the kind of subsystem to be returned. Valid values are: CommandPredictor.
Type: System.Management.Automation.Subsystem.SubsystemKind
Parameter Sets: GetByKindSet
Aliases:
Accepted values: CommandPredictor
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseSpecifies the type of subsystem to be returned.
Type: System.Type
Parameter Sets: GetByTypeSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.