O'Reilly logo

SQL Server 2014 with PowerShell v5 Cookbook by Donabel Santos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running PowerShell scripts

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).

Through shell or through the 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required