Windows PowerShell 3.0 Step by Step

Errata for Windows PowerShell 3.0 Step by Step




The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page XXIV
Code Samples

The download links for the scripts has not been updated to include all the scripts from all the chapters

Note from the Author or Editor:
I will update the scripts in the next week.

David Barker  Apr 15, 2013 
PDF
Page 14
2nd line from below

For ($i = 0 ; $i -le $error.Count ; $i ++) -le should be -lt beacause an extra `nerror $i line appears.

Note from the Author or Editor:
On Page 14, in the text for the UpdateHelpTrackErrors.ps1 script, the following line of code: For ($i = 0 ; $i -le $error.Count ; $i ++) Should be changed to: For ($i = 0 ; $i -lt $error.Count ; $i ++)

Denis Zakharov  Mar 15, 2013  Apr 19, 2013
Printed, PDF
Page 97
Testing for a registry key property prior to writing a new value

was: if(Get-ItemProperty HKCU:\Software\test -Name bogus -ea 0).bogus) {'Propertyalready exists'} ELSE { Set-ItemProperty -Path HKCU:\Software\test -Name bogus -Value 'initial value'} should be: if((Get-ItemProperty -Path HKCU:\Software\test -Name bogus -ea 0).bogus) {'Propertyalready exists'} ELSE { Set-ItemProperty -Path HKCU:\Software\test -Name bogus -Value 'initial value'} change: added second ( to if added -path after get-itemproperty

Note from the Author or Editor:
On page 97 this code appears: if(Get-ItemProperty HKCU:\Software\test -Name bogus -ea 0).bogus) {'Propertyalready exists'} ELSE { Set-ItemProperty -Path HKCU:\Software\test -Name bogus -Value 'initial value'} The first line is missing a left parenthesis after the word if. The corrected code appears here: if((Get-ItemProperty -Path HKCU:\Software\test -Name bogus -ea 0).bogus) {'Propertyalready exists'} ELSE { Set-ItemProperty -Path HKCU:\Software\test -Name bogus -Value 'initial value'}

Larry  Mar 06, 2013  Apr 19, 2013