PowerShell 7 : Running Commands and Writing a Script
Lecture
Adam Bertram
Intermediate
0 h 22 m
2020-07-08
Lecture Overview
Throughout this series, you've been in the PowerShell console. You've been manually typing in commands, running them and seeing what comes back. That's fine if you need to bang out a quick command to do something simple but the console's going to fall short for more advanced tasks.PowerShell is called a scripting language for a reason - you write scripts with it. What's a script? In PowerShell terms, a script is a combination of commands all working together to be run at one time.A script can be one to thousands of lines long. When PowerShell executes a script, it starts at the top and makes its way down to the bottom until it has run all of the code in the script.

Related Learning Path(s):
Getting Started with PowerShell 7
Objectives
  • Throughout this series, you've been in the PowerShell console. You've been manually typing in commands, running them and seeing what comes back. That's fine if you need to bang out a quick command to do something simple but the console's going to fall short for more advanced tasks. PowerShell is called a scripting language for a reason - you write scripts with it. What's a script? In PowerShell terms, a script is a combination of commands all working together to be run at one time. A script can be one to thousands of lines long. When PowerShell executes a script, it starts at the top and makes its way down to the bottom until it has run all of the code in the script.
Lecture Modules

Adam Bertram introduces himself and gives a brief overview of the demos in this course.


In this demo you will get familiar with PowerShell commands,understand's PowerShell's Verb-Noun command syntax, discover available commands and find out how to access the built-in help system.
This demo will help you to understand a PowerShell script is simply commands all run at once, know when to write a PowerShell script and learn how to write a basic script.
Try Risk Free

Start a free trial

Skill Me Up subscriptions include unlimited access to on-demand courses with live lab lab environments with our Real Time Labs feature for hands-on lab access.

Subscription Benefits
  • Access to Real Time Lab environments and lab guides
  • Course Completion Certificates when you pass assessments
  • MUCH MORE!