Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Windows Server with Powershell: Preparing for Scripting
Rating: 4.6 out of 5(9 ratings)
2,307 students

Windows Server with Powershell: Preparing for Scripting

Variables, operators, execution policy, parameters and comment-based help - turn a command into a reusable script
Created byVitalii Shumylo
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Learn the rules for variables and how to use them
  • Use math operators and quotation marks correctly
  • Understand execution policy, trust and other security features
  • Write verbose output and comment-based help
  • Wrap a script in a function, and see how a function becomes a module

Course content

3 sections • 14 lectures • 1h 10m total length
  • Course Overview3:14

    Learn how wearables serve as temporary storage for objects in Windows PowerShell, and outline their usage rules, including creation, management, and basic calculations.

  • Variable Rules2:24

    Define valid PowerShell variable names, favoring letters and numbers; use underscores only when necessary, and curly braces to include spaces while the dollar sign prefixes access.

  • Using Variables6:13

    Assign objects to variables with the equals operator in PowerShell, work with arrays and objects, access members via dot notation, and use -is and -as for type checks and conversions.

  • Math Operators and Quotation Marks6:05

    Master PowerShell math operators—plus, minus, multiply, and divide—using parentheses to control evaluation. Discover how quotes trigger or suppress variable expansion, how sub expressions work, and grave accents.

  • Security Goals3:15

    Explore Windows PowerShell security goals, execution policy, and trust in script security, and learn to configure shell security features as part of defense in depth to protect against script-based attacks.

  • Execution Policy3:51

    Explore PowerShell execution policy as a security feature, default restricted, and how to view and set policies at local, group policy, or session level, including code signing requirements.

  • Understanding Trust and Other Security Features6:15

    Explore how trust and code signing certify script authors, verify identities, and ensure script authenticity in Windows PowerShell, with execution policies, extensions, and path resolution tips.

  • Intro to WMI and CIM8:06

    Explore Windows Management Instrumentation and the Common Information Model, comparing WMI and CIM standards and how PowerShell connects to them locally and remotely.

Requirements

  • General familiarity with Windows server administration
  • First experience with PowerShell commands
  • A Windows computer or virtual machine

Description

You already run PowerShell commands, and this short course turns them into scripts you can reuse. You learn the rules scripts need, the security that protects you, and then take one command all the way to a function.

What the lectures cover

Besides the main topics, you also work through: Understand the security goals of PowerShell; Parameterise the values that change in a command; Turn a command into a script in a lab, then compare it with the answers; Get an introduction to WMI and CIM.

How the course works

The course follows the path from a single command to a reusable tool. First you learn the rules for variables and operators, then the security that decides whether a script may run, then you turn a changing value into a parameter. A lab with answers lets you practise the whole path yourself.

Inside the course

The course is organised into these sections: Preparing for Scripting; Moving from Command to Script; Moving from Script to Function to Module. Lectures you will find include: Math Operators and Quotation Marks.

The course runs about 1.2 hours in 14 lectures. It is a focused, short bridge from commands to scripts. It does not cover advanced scripting, error handling or building complete modules. Once you finish, you can take on a longer scripting course with a solid foundation.

Who this course is for:

  • Administrators who run commands and want to write scripts
  • IT specialists who copy scripts and want to understand them
  • DevOps technicians preparing to automate routine work