Errata

Microsoft® Windows PowerShell™ Step By Step

Errata for Microsoft® Windows PowerShell™ Step By Step

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
Printed Page 363
Following 2nd full paragraph

"For example, to obtain the sine of a 45 degree angle, use the SIN static method from the system.math class. This appears here:

[math]::sin(45)

returns the sine of 45 radians, not the sine of 45 degrees.

To obtain the sine of 45 degrees requires the conversion of degrees to radians. To convert from degrees to radians, multiply degrees by
PI / 180

The correct expression,

[math]::sin(45 * [math]::PI / 180)

yields the sine of 45 degrees.

Anonymous  Aug 17, 2013 
Printed Page 363
Following 2nd full paragraph

"For example, to obtain the sine of a 45 degree angle, use the SIN static method from the system.math class. This appears here:

[math]::sin(45)

returns the sine of 45 radians, not the sine of 45 degrees.

To obtain the sine of 45 degrees requires the conversion of degrees to radians. To convert from degrees to radians, multiply degrees by
PI / 180

The correct expression,

[math]::sin(45 * [math]::PI / 180)

yields the sine of 45 degrees.

Anonymous  Aug 17, 2013 
Printed Page 374
3rd paragraph, following first full paragraph

PS C:\> $logon = Get-CimInstance win32_logonsession
PS C:\> Get-CimAssociatedInstance $logon | Get-Member

Should be:

PS C:\> $logon = Get-CimInstance win32_logonsession
PS C:\> $logon | Get-CimAssociatedInstance | Get-Member

Anonymous  Aug 17, 2013