Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

CHAPTER 4: Aliases, Functions, and the Pipe, Oh My!

CHAPTER 4

Aliases, Functions, and the Pipe, Oh My!

IN THIS CHAPTER, YOU WILL LEARN TO:

image Use Aliases 66
Use Built-in Aliases 67
Create Your Own Aliases 69
image Use Functions 77
Understand Functions 78
Use Existing Functions 79
Create Your Own Function 80
image Work with the Pipe Operator 81
Use the Pipe Operator to Combine PowerShell Cmdlets 81
Control PowerShell Output 82

This chapter covers three important tools to add your own style to PowerShell: aliases, functions, and the pipe (|) operator.

Aliases provide a way to shorten long cmdlets, saving you typing. More importantly, aliases allow you to use your former command prompt knowledge and put it to use inside a PowerShell session.

Functions let you take PowerShell to an entirely new level. They extend the concept of aliases and can take advantage of the power of the .NET Framework.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial