-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
SQL Server 2014 with Powershell v5 Cookbook
By :
It is now time to run your script. In the following sections, we will see how you can run your PowerShell scripts through the command shell or the Integrated Scripting Environment (ISE).
You can run ad hoc commands using the shell or the Integrated Scripting Environment (ISE).
Depending on your operating system, you may have a different navigation path to open the PowerShell console. An easy way is to use Windows Search to look for Windows PowerShell. Often, when managing your servers or performing administrative tasks, you will need to run PowerShell as an administrator. To do this, right-click on PowerShell 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 10 running processes, you can use the Get-Process cmdlet, as shown in the following screenshot:

You can also use the ISE to perform this task. Search for the PowerShell ISE and launch...