-
Book Overview & Buying
-
Table Of Contents
SQL Server 2012 with PowerShell V3 Cookbook
By :
It is now time to run your first script!
You can run ad hoc commands through the shell or through the Integrated Scripting Environment (ISE).
To use the PowerShell console, you can launch the shell by opening Start | All Programs | Accessories | Windows PowerShell | Windows PowerShell. Often when managing your servers, you may need to run this as Administrator (right-click on the PowerShell icon and select Run as Administrator).
Once the console is ready, you can type your commands and press Enter to see the results. For example, to display ten (10) running processes, you can use the Get-Process cmdlet, as shown in the following screenshot:

You can also use the ISE, and to launch the ISE, go to Start | All Programs | Accessories | Windows PowerShell | Windows PowerShell ISE. Similar to the shell, you can type your command and press the Run button (green arrow icon).

More details about the ISE are covered in Chapter 1, Getting Started...