Appendix D. Windows PowerShell FAQ

This appendix answers many questions that come up when I teach Windows PowerShell classes and when making Windows PowerShell presentations at various events.

Q:

Q. How many cmdlets are available on a default Windows PowerShell 3.0 installation?

A:

A. 403

Q:

Q. How do you find out how many cmdlets are available on a default Windows PowerShell installation?

A:

A. Use the following:

Get-Module -ListAvailable | Import-Module ; gcm -co cmdlet | measure

Q:

Q. What is the difference between a read-only variable and a constant?

A:

A. A read-only variable is one whose content is read-only. You can, however, modify it by using the Set-Variable cmdlet with the -force parameter. You can also delete it by using Remove-Variable ...

Get Windows PowerShell™ 3.0 Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.