Administration and Automation with Windows PowerShell

0%

0/1 Lessons

Course Introduction

• 5min

0 / 2 lessons complete

Getting Started with Windows PowerShell

• 42min

0 / 7 lessons complete

Getting Help and Finding Commands

• 39min

0 / 6 lessons complete

PowerShell Command Syntax

• 33min

0 / 5 lessons complete

PowerShell Objects and Properties

• 35min

0 / 6 lessons complete

The PowerShell Pipeline

• 24min

0 / 2 lessons complete

PowerShell Providers

• 30min

0 / 5 lessons complete

PowerShell Arrays and Variables

• 28min

0 / 4 lessons complete

PowerShell Loops

• 19min

0 / 3 lessons complete

PowerShell Conditional Statements

• 11min

0 / 1 lessons complete

On Premises Lab Setup

• 36min

0 / 8 lessons complete

Basic Domain Administration with Windows PowerShell

• 2hr 27min

0 / 10 lessons complete

Send Emails with PowerShell

• 22min

0 / 2 lessons complete

PowerShell Desired State Configuration (DSC) Basics

• 1hr 48min

0 / 6 lessons complete

Course Conclusion

• 1min

0 / 1 lessons complete

You need to sign up to get access!

Sign up to get full access to this course.

Sign up to access this lesson

Click here to sign up and get access to this lesson!

Saving Progress...

In this lecture we’re going to dive in and take a close look at the awesome Intelligent Scripting Environment or the ISE

But before we do that, let me show you again how to pin the ISE to the taskbar then customize it to run as administrator. Log into your computer as administrator.

Now type PowerShell, right click on 64 bit version of Windows PowerShell ISE

Click pin to taskbar. Hold down the shift key then Right click on the PS icon in the taskbar, then click properties. Click shortcut, then click advanced now check run as administrator, click ok then click ok again.

Now let’s go ahead and click your PowerShell ISE Icon that we just created. (Should come up in administrator mode)

  1. Now we’re gonna take a look at the menu bar – File, edit, view, tools Debug, Add-ons and Help. We’re not going to go aver each and every option here, but we will hit the high points.
  2. The buttons on the tool bar allow you to run tasks related to writing and running scripts. Items on the menu bar show the default keyboard shortcuts. 

I provided you a pdf document called keyboard shortcuts for the ISE. Be sure to download that as well. 

File – You can save or use save as to name and choose a location for your PowerShell script. One thing I want to point out to you is that Scripts are saved with a .ps1 extension

Edit – You can cut, paste, search, find and go to specified locations in your script. 

          Start Snippets (ctrl-J) Provides code that you can cut and paste to your script.

View

  • Demonstrate - The next three commands shift the script pane around the desktop.

Tools/Options

Debug

Add-ons – (Commands Add-on must be turned on)

  • Later, when you are more comfortable with PowerShell, come back to this page and check it out. This link provides various tools that have been created by the PowerShell Community. 
  • Be sure View, Show Command Add-on is checked, this will give you more help options under Add-ons.
  • You can download various tools from the PowerShell gallery

Help    

  • You can use Windows PS ISE help
  • You can use Windows PS help
  • Use Show Command Windows

Toolbar: 

For the most part the buttons on the toolbarare self- explanatory.  If you need an explanation refer to the documentation. New script - allows you to open a new script

  • Save script – Save a script
  • Cut – Cntrl +X – Allows you to cut the selected text and copy to the clipboard.
  • Copy – Cntrl + C - Allows you to copy the selected text and copy to the clipboard.
  • Paste - Cntrl + V – Allows you to paste the contents of the clipboard at the cursor location
  • Clear Console Pane – Clears the contents of the console pane
  • Undo/Redo – Reverses the action just performed. Performs the action that was just undone. 

Notice the error, I’ll show you how to fix that later.

  • Run Selection (f8) Runs the selected portion of the script
  • Stop Operation (Ctrl+Break) Stops the current script from running
  • New Remote PowerShell Tab – Allows you to connect to a remote computer with the proper credentials 
  • Start PS console in a separate Tab – Opens the PowerShell console in a separate window
  • Show Script Pane Top – Moves the script pane to the top of the screen
  • Show Script Pane Right – Moves the Scripting pane to the right
  • Show Script Pane Maximized – Maximizes the scripting pane

ISE has three sections for display 

Sign up to access the rest of this lesson

You must either log in or sign up to access this lesson.

Saving Progress...

0 0 votes
Lesson Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments