about_Parameters_Default_Values - by Shay Levi

Status : 

 


2
0
Sign in
to vote
ID 775137 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 12/26/2012 7:33:13 AM
Access Restriction Public

Description

The last section in the topic "HOW TO DISABLE AND RE-ENABLE $PSDefaultParameterValues" shows how to enable/disable the feature. There are two command occurrences that are missing quotes in the key name:

$PSDefaultParameterValues[Disabled]=$true
...
$PSDefaultParameterValues[Disabled]=$false



It should be:

$PSDefaultParameterValues["Disabled"]=$true
...
$PSDefaultParameterValues["Disabled"]=$false
Sign in to post a comment.