Datasheet
  WHAT’S NEW IN POWERSHELL 2.0?  9
What Is PowerShell, and 
Why Do You Need It?
CHAPTER 1
example, the following cmdlet would create and enter a new PowerShell session 
on Server2:
Enter-PSSession -ComputerName Server2
Your results will look similar to Figure 1.4.
FIGURE 1.4 Remote session
Another key addition to PowerShell 2.0 is the ability to create and run background 
jobs. A er you start a background job, you are returned almost immediately to 
your interactive PowerShell session.   is allows you to continue to do work in your 
PowerShell session, and at any time you can see the status of your background 
jobs.   e following command starts a command in the background to get the 
existing services:
Start-Job -name Services -scriptblock (Get-Service)
To see the status of background jobs you started in your PowerShell session, you 
would run the following command:
Get-Job
Your results will look similar to Figure 1.5.
FIGURE 1.5 Background jobs
c01.indd 9c01.indd 9 4/18/2011 10:27:17 AM4/18/2011 10:27:17 AM










