Skip to Content
Windows PowerShell™ 3.0 Step by Step
book

Windows PowerShell™ 3.0 Step by Step

by Ed Wilson
February 2013
Beginner content levelBeginner
704 pages
21h 31m
English
Microsoft Press
Content preview from Windows PowerShell™ 3.0 Step by Step

Appendix F. Basic Troubleshooting Tips

This appendix contains a collection of general troubleshooting tips. They are not necessarily in any particular order of importance.

  • Remember, spelling counts. Always look for misspelled cmdlet names, property names, method calls, and so on. In Windows PowerShell, if you do not spell a property name correctly, when you try to run the script, it will not generate an error. When the following code is typed inside the shell, there is no output—nothing to indicate that you choose a bad property of the WIN32_Service WMI class.

    PS C:\> $wmi = Get-WmiObject -Class win32_service
    PS C:\> $wmi.badproperty
    PS C:\>
  • Do not break the pipeline. This one is particularly easy to do. For example, say you start off with a command ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows Server™ 2003 Inside Out

Microsoft® Windows Server™ 2003 Inside Out

William R. Stanek
Windows PowerShell® 2.0 Bible

Windows PowerShell® 2.0 Bible

Thomas Lee, Karl Mitschke, Mark E. Schill, Tome Tanasovski

Publisher Resources

ISBN: 9780735669970Purchase book