0%
0/1 Lessons
Course Introduction • 5min
0 / 2 lessons complete
Course Introduction
Free Preview Lesson
Video | 3 min min
PowerShell System Requirements
Free Preview Lesson
Video | 2 min min
Getting Started with Windows PowerShell • 56min
0 / 8 lessons complete
The Basics of PowerShell
Free Preview Lesson
Video | 7 min min
Installing and Updating PowerShell
Free Preview Lesson
Video | 7 min min
The Text Based Console Part 1- An Overview
Full Access Account Required
Video | 7 min min
Text Based Console Part 2 - An Overview
Full Access Account Required
Video | 5 min min
The ISE (Intelligent Scripting Environment) Part 1
Full Access Account Required
Video | 5 min min
The ISE (Intelligent Scripting Environment) Part 2
Full Access Account Required
Video | 5 min min
Setting up Visual Studio Code for PowerShell
Full Access Account Required
Video | 14 min min
Use the OGV Command to Easily View console data!
Full Access Account Required
Video | 6 min min
Getting Help and Finding Commands • 39min
0 / 6 lessons complete
Getting Help and Finding Commands Part 1
Full Access Account Required
Video | 7 min min
Getting Help and Finding Commands Part 2
Full Access Account Required
Video | 3 min min
Getting Help and Finding Commands Part 3
Full Access Account Required
Video | 4 min min
Help System LAB Questions
Full Access Account Required
Video | 6 min min
Help System Lab Answers 1-4
Full Access Account Required
Video | 9 min min
Help System Lab Answers 5-9
Full Access Account Required
Video | 10 min min
PowerShell Command Syntax • 33min
0 / 5 lessons complete
Command Syntax Part 1
Full Access Account Required
Video | 8 min min
Command Syntax Part 2
Full Access Account Required
Video | 8 min min
Command Syntax Part 3
Full Access Account Required
Video | 5 min min
Command Syntax Lab Questions
Full Access Account Required
Video | 4 min min
Command Syntax Lab Answers
Full Access Account Required
Video | 8 min min
PowerShell Objects and Properties • 35min
0 / 6 lessons complete
Objects, Properties and Methods Part 1
Full Access Account Required
Video | 3 min min
Objects, Properties and Methods Part 2
Full Access Account Required
Video | 8 min min
Objects, Properties and Methods Part 3
Full Access Account Required
Video | 7 min min
Questions 1-9 for Objects, Properties and Methods
Full Access Account Required
Video | 2 min min
Answers to Questions 1-7 O-P-M
Full Access Account Required
Video | 11 min min
Answers to Questions 8,9 O-P-M
Full Access Account Required
Video | 4 min min
The PowerShell Pipeline • 24min
0 / 2 lessons complete
The Pipeline Part 1
Full Access Account Required
Video | 11 min min
The Pipeline Part 2
Full Access Account Required
Video | 13 min min
PowerShell Providers • 30min
0 / 5 lessons complete
What are PowerShell Providers
Full Access Account Required
Video | 3 min min
Using PS Drive
Full Access Account Required
Video | 6 min min
PowerShell Provider CMDlets -1
Full Access Account Required
Video | 12 min min
PowerShell Providers CMDlets -2
Full Access Account Required
Video | 7 min min
Student Assignments
Full Access Account Required
Text | 2 min min
PowerShell Arrays and Variables • 28min
0 / 4 lessons complete
PowerShell Variables
Full Access Account Required
Video | 9 min min
PowerShell Arrays
Free Preview Lesson
Video | 12 min min
PowerShell Variables Challenge
Full Access Account Required
Video | 2 min min
PowerShell Variables Solution
Full Access Account Required
Video | 5 min min
PowerShell Loops • 19min
0 / 3 lessons complete
For Loops
Free Preview Lesson
Video | 7 min min
While Loops
Free Preview Lesson
Video | 7 min min
For Each Loop
Free Preview Lesson
Video | 5 min min
PowerShell Conditional Statements • 11min
0 / 1 lessons complete
On Premises Lab Setup • 36min
0 / 8 lessons complete
Should You Watch This Section?
Full Access Account Required
Video | 2 min min
Downloading and Installing VirtualBox
Full Access Account Required
Video | 2 min min
Downloading Windows Server 2019
Full Access Account Required
Video | 3 min min
Creating Your Virtual Network
Full Access Account Required
Video | 2 min min
Creating Your Virtual Machines
Full Access Account Required
Video | 7 min min
Installing VirtualBox Guest Additions
Full Access Account Required
Video | 2 min min
Installing Windows Server
Full Access Account Required
Video | 8 min min
Installing the Active Directory Domain Services Role
Full Access Account Required
Video | 10 min min
Basic Domain Administration with Windows PowerShell • 2hr 27min
0 / 10 lessons complete
Configuring PowerShell Execution Policy with Group Policy
Full Access Account Required
Video | 13 min min
Installing Windows Server Roles and Features with Powershell
Full Access Account Required
Video | 6 min min
Running Powershell Scripts as Scheduled Tasks
Free Preview Lesson
Video | 8 min min
Creating Organizational Units with Powershell
Full Access Account Required
Video | 11 min min
Creating and Managing Active Directory User Accounts with PowerShell
Full Access Account Required
Video | 19 min min
Move all AD Users in a Group to a Specific Organizational Unit
Full Access Account Required
Video | 7 min min
Generate a list of AD Users and their OU
Full Access Account Required
Video | 5 min min
PowerShell Splatting
Full Access Account Required
Video | 5 min min
Bulk Install Windows MSU Files Automatically with PowerShell
Full Access Account Required
Video | 13 min min
Lab: Domain Administration with Windows PowerShell
Full Access Account Required
Lab | 60 min min
Send Emails with PowerShell • 22min
0 / 2 lessons complete
Send Emails from Gmail with PowerShell
Full Access Account Required
Video | 9 min min
Create Password Expiration Notification Script
Full Access Account Required
Video | 13 min min
PowerShell Desired State Configuration (DSC) Basics • 1hr 48min
0 / 6 lessons complete
DSC Overview
Full Access Account Required
Video | 9 min min
Enabling PSRemoting with Group Policy
Full Access Account Required
Video | 9 min min
The DSC Resource Kit
Full Access Account Required
Video | 7 min min
Configuring The Local Config Manager for DSC Push
Free Preview Lesson
Video | 14 min min
Uninstalling Windows Features with DSC
Full Access Account Required
Video | 9 min min
Lab: Desired State Configuration (DSC)
Full Access Account Required
Lab | 60 min min
PowerShell Modules • 58min
0 / 7 lessons complete
Finding and installing PowerShell modules
Free Preview Lesson
Video | 17 min min
Creating a Custom PowerShell Module: Files and Folders
Full Access Account Required
Video | 5 min min
Writing the New-Greeting Function
Full Access Account Required
Video | 4 min min
Writing the Get-GreetingMessage Function
Full Access Account Required
Video | 3 min min
Creating the PSM1 PowerShell Module File
Full Access Account Required
Video | 9 min min
Creating a PowerShell Module Manifest and Importing our Custom Module
Full Access Account Required
Video | 8 min min
Writing automated module tests with Pester
Full Access Account Required
Video | 12 min min
Powershell Challenges • 1hr 55min
0 / 23 lessons complete
Section Overview
Full Access Account Required
Video | 5 min min
The Trusted Hosts List Challenge
Full Access Account Required
Text | 5 min min
The Trusted Hosts List Answer
Full Access Account Required
Video | 5 min min
Starting a Remote Session Challenge
Full Access Account Required
Text | 5 min min
Starting a Remote Session Answer
Full Access Account Required
Video | 5 min min
Rename a Computer Challenge
Full Access Account Required
Text | 5 min min
Rename a Computer Answer
Full Access Account Required
Video | 5 min min
Change a Password on a Remote Computer Challenge
Full Access Account Required
Text | 5 min min
Change a Password on a Remote Computer Answer
Full Access Account Required
Video | 5 min min
How to Copy Files To-From a Remote Machine Challenge
Full Access Account Required
Text | 5 min min
How to Copy Files To-From a Remote Machine using VSC Answer
Full Access Account Required
Video | 5 min min
How to Export Logs to a CSV File Challenge
Full Access Account Required
Text | 5 min min
How to Export Logs to a CSV File Answer
Full Access Account Required
Video | 5 min min
How to Create Multiple Folders on the Host Machine using Powershell
Full Access Account Required
Text | 5 min min
How to Create Multiple Folders on the Host Machine using Powershell Answer
Full Access Account Required
Video | 5 min min
Who Rebooted the Server ID1074 Challenge
Full Access Account Required
Text | 5 min min
Who Rebooted the Server
Full Access Account Required
Video | 5 min min
How can you get Info on all your Hard Drives Challenge
Full Access Account Required
Text | 5 min min
How can you get Info on all your Hard Drives Answer
Full Access Account Required
Video | 5 min min
How can I get a list of CPU's and Installed Printers, Last Boot-up Time Challenge
Full Access Account Required
Text | 5 min min
How can I get a List of CPU's and Installed Printers, Last Boot-up Time Answer
Full Access Account Required
Video | 5 min min
How can I Automate Tasks with Task Scheduler Challenge
Full Access Account Required
Text | 5 min min
How can I Automate Tasks with the Task Scheduler Answer
Full Access Account Required
Video | 5 min min
Course Conclusion • 1min
0 / 1 lessons complete
Resources
There are no resources for this lesson.
Let’s take a look at some examples using Methods:
We’re going to be using get-process and the process named notepad
- First let’s open notepad, open your search bar and press notepad, minimize to the taskbar
- Type get-process, press return, press return again. Scroll up, and we see that notepad is running. Press return and cls.
- Type get-process -name notepad press return, now press return again
In our boat and car illustration we showed you that objects contain properties and methods, but when we take a look at get-process there are no methods or properties listed.
So, the question is, how can I display the property or methods for get-process?
- By using a special command called get-member. We’ll use the alias gm for get-member.
- Type get-process -name notepad | gm. (Use pipe operator) That’s the symbol right above the enter key. Press your shift key and your pipe operator.
If you recall, a pipeline takes the output of one command and pushes it through to the input of the second command.
So, get-process has a process called notepad, and you’re piping the output of notepad into the input of get-member. Press return
- There is some very important information, when using get-member.
It’s TypeName. Typename tells us what kind of object that is being sent across the pipeline. In this case the TypeName is System.Diagnostics.Process but we’ll just use the last part which is process. Just keep that in mind, you’ll need it later when we get to the pipeline lecture.
- Notice the method called kill. Kill is definitely an action.
Go ahead and type this out then we’ll explain it
- Type (Get-Process Notepad).kill()
- To use a method of an object, Place the cmdlet name and the argument in parenthesis, then type a dot (.), then the method name, and a set of parentheses "()".
The parentheses are required for every method call, even when there are no arguments.
The point is that we don’t need a separate cmdlet to close the process notepad we have the method kill. Press return
And we see that notepad has been closed.
Let’s try another example of using Methods
- Let’s say we want to copy files from one location to another. In this case we’ll use the get-childitem command.
- Let open windows explorer, for demonstration purposes I’ve created a folder named content.
Double click on content and we have a text file named computers. click that file and displayed is the contents of the text file.
- Now we want to copy this file from the C:\content folder to the c:\test folder using a method called copyto.
Type get-childitem | GM – (Pipe operator) press return
Notice the get-childitem TypeName: is FileInfo
We’ll use the copyto method to copy a file from one location to another
- We don’t need a cmdlet, not when we have the copyto method, press return
Let’s go ahead and type the command then I’ll explain it.
Type (Get-childitem C:\content\computers.txt). copyto("C:\test\computers.txt")
- Put the cmdlet name and the argument in parenthesis then type a dot (.), the method name, in this case is copyto. and a set of parentheses "()".
Every time I ran the get-childitem | gm command it would tell me the type was directory info and not file info. I was running it from c:\users\administrator directory when I switched to c:\windows\system32 it showed the type as both directory info and file info.
Hi
Ambrose Garza
That’s correct, same behavior from my end.
The difference is in what the folder contains.
Ricardo