Home Dashboard Directory Help
Search

about_Parameters_Default_Values by Shay Levi


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 775137
Opened: 12/26/2012 7:33:13 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

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
Details
Sign in to post a comment.
Sign in to post a workaround.