Errata

Windows PowerShellâ„¢ 2.0 Best Practices

Errata for Windows PowerShellâ„¢ 2.0 Best Practices

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Other Digital Version 37
Example 2-5

The example should start with Get-EventLog rather than Get-Event

John Carpenter  Jun 05, 2011 
Printed, PDF, Other Digital Version Page 40

The following code
> $wmi = Get-WmiObject ?class Win32_Volume ?filter "name = 'c:'"

does not work on my Vista SP2
Unfortunately it was the first example I tried!! :(

I was able to get it to work using
> $wmi = Get-WmiObject ?class Win32_Volume ?filter "name = 'c:\\'"

or

> $wmi = Get-WmiObject ?class Win32_Volume ?filter "driveletter = 'c:'"

Regards,
Michael.

Michael Lynch  Apr 04, 2011 
Printed Page 294
First paragraph not in sidebar

List of recommended verbs is in Appendix B, "Common Windows PowerShell Verbs", not in Appendix G.

Pat Albrecht  Jan 06, 2012