Welcome to Ryan's Blog!

Hi, I'm Ryan. Welcome to my weblog!

Posts are categorized by the links you see at the top of the page.

When you click on a link above, the first post on the page is in full length but all other posts are minimized so you will have to click Read more >> to see them in full-length.

Below, you will find the most recently added content. Thanks for visiting my blog!

Tuesday, November 13, 2018

Different Ways to Use PowerShell

Table of Contents

Introduction

Using PowerShell on the command line is not the only way to use PowerShell.

You can write PowerShell scripts. You can run PowerShell from the old Command Prompt. You can run PowerShell from batch scripts, other PowerShell scripts, scheduled tasks, etc.

Back to the TOC

Running PowerShell from the old Command Prompt

First, lets look at the difference between running PowerShell from the PowerShell command line interface (powershell.exe) vs running PowerShell from the old Command Prompt (cmd.exe).

To run PowerShell commands from within powershell.exe, you just use the language as usual: