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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.