다음을 통해 공유


Enable-ExperimentalFeature

Enable an experimental feature on startup of new instance of PowerShell.

구문

Default (기본값)

Enable-ExperimentalFeature
    [-Name] <String[]>
    [-Scope <ConfigScope>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Enable-ExperimentalFeature cmdlet enables experimental features by adding the named experimental features to the powershell.config.json settings file read on PowerShell startup.

This cmdlet was introduced in PowerShell 6.2.

Note

Any changes to experimental feature state only takes effect on restart of PowerShell

예제

Example 1: Enable an experimental feature

In this example, if this experimental feature was previously disabled, then the powershell.config.json file is updated for the user to enable that feature once PowerShell is restarted. Upon success nothing is output to the pipeline and only a warning message is displayed.

Enable-ExperimentalFeature PSImplicitRemotingBatching
WARNING: Enabling and disabling experimental features do not take effect until next start of PowerShell.

매개 변수

-Confirm

Prompts you for confirmation before running the cmdlet.

매개 변수 속성

형식:SwitchParameter
Default value:None
와일드카드 지원:False
DontShow:False
별칭:cf

매개 변수 집합

(All)
Position:Named
필수:False
파이프라인의 값:False
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

-Name

The name or names of the experimental features to enable.

매개 변수 속성

형식:

String[]

Default value:None
와일드카드 지원:False
DontShow:False

매개 변수 집합

(All)
Position:0
필수:True
파이프라인의 값:False
속성 이름별 파이프라인의 값:True
나머지 인수의 값:False

-Scope

Determines which powershell.config.json to update whether it affects all users or just the current user.

매개 변수 속성

형식:ConfigScope
Default value:CurrentUser
허용되는 값:AllUsers, CurrentUser
와일드카드 지원:False
DontShow:False

매개 변수 집합

(All)
Position:Named
필수:False
파이프라인의 값:False
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

매개 변수 속성

형식:SwitchParameter
Default value:None
와일드카드 지원:False
DontShow:False
별칭:wi

매개 변수 집합

(All)
Position:Named
필수:False
파이프라인의 값:False
속성 이름별 파이프라인의 값:False
나머지 인수의 값:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

입력

ExperimentalFeature

Pipe instances of ExperimentalFeature from Get-ExperimentalFeature cmdlet to enable.

출력

None

This cmdlet returns no output.

참고

Changes to state of an experimental feature only take effect on restart of PowerShell.