Administration and Automation with Windows PowerShell


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

DSC Overview

Desired State Configuration (DSC) allows you to manage your Windows Servers with configuration as code. You can do things like creating files, installing or uninstalling Windows Features, and much more. If you run the PowerShell command “Get-DscResource” you can see all of the resources you can interact with and configure with DSC.

We are going to use DSC to uninstall the vulnerable SMBv1 feature that comes on Windows Server. We will use a DSC to push the configuration to our desired clients, and from then on DSC will continue to uninstall SMBv1 if it ever gets installed again later.

DSC is supported by almost all modern Windows operating systems. An exact list is shown below:

  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012R2
  • Windows Server 2012
  • Windows Server 2008 R2 SP1
  • Windows 10
  • Windows 8.1
  • Windows 7

In this section, we will be setting up a DSC Push architecture which is the simplest and quickest way to get started using DSC. Here are a few terms you should  be familiar with before getting started:

  • Configurations - The PowerShell scripts that configure instances
  • Resources - What you’re configuring on the target computer (file, log, Windows feature, etc)
  • Local Configuration Manager (LCM) - The LCM is responsible for implementing your configurations

You can view your LCM settings on your computer by running the following administrative PowerShell command prompt: Get-DscLocalConfigurationManager.

You might find it surprising that you don’t have to install the LCM. That’s what makes using the DSC Push architecture so great. It takes pretty much no setup at all to get started.

We are going to use the task of disabling SMBv1 to familiarize ourselves with DSC.

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
Notify of
Inline Feedbacks
View all comments