Search

about_Parameters_Default_Values by Shay Levi

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)
0
User(s) can reproduce this bug
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 (expand)
How often does this happen?
Always Happens
Have you seen this problem before in this product?
No, this is new to the most recent version
Reproduction Steps
 
Expected Results
 

Where do you see this documentation issue.

TechNet Library
On the box help (available with get-help)
File Attachments
0 attachments
Sign in to post a comment.
Sign in to post a workaround.