Tag: PowerShell

How to Deploy and Update Azure VM Scale Sets with PowerShell

Performing an Azure VM Scale Set deployment is a great way to get autoscaling and high-availability out of the box. Azure VM Scale Sets have many baked-in features like automatically scaling to meet demand, deploying across availability zones and more.

Adam Bertram Avatar Adam Bertram

9 min. read

PowerShell vs. Python: A Battle for the Ages

What's the best programming language? You might get ten different answers when asking ten different developers. In this article, we're going to compare two languages; PowerShell and Python. You will get a glimpse into each of these languages and understand how they compare and contrast in features such as syntax, availability across platforms, and more.

Mohamed Mostafa Avatar Mohamed Mostafa

7 min. read

Back to Basics: Understanding PowerShell Objects

PowerShell is a powerful language. But what makes this scripting language so powerful? PowerShell objects. What are these magical objects and how does PowerShell work with them? Stay tuned to find out.

Bill Kindle Avatar Bill Kindle

14 min. read

PowerShell Multithreading: A Deep Dive

At some point, most people will run into a problem that a basic PowerShell script is just too slow to solve. This could be collecting data from lots of computers on your network or perhaps creating a ton of new users in Active Directory at once. These are both great examples of where using more processing power would get your code to run faster. Let's get into how to solve this using multithreading in PowerShell!

Tyler Muir Avatar Tyler Muir

19 min. read

Set-ADUser: Modifying Active Directory Users with PowerShell

Are you tired of going through the motions of making changes to an Active Directory account using the Active Directory (AD) Users and Computers (ADUC) console application? If so, why not save yourself time and automate the trivial process of updating AD objects with PowerShell using the Set-ADUser cmdlet!

Kevin Sapp Avatar Kevin Sapp

5 min. read

Get-ADObject: Reporting on Active Directory with PowerShell

Are you looking for a quick way to create an Active Directory (AD) report using PowerShell? You’ve come to the right place!  In this article, you will learn how to create custom reports of user accounts in your AD environment using the Get-ADObject cmdlet.

Kevin Sapp Avatar Kevin Sapp

8 min. read

Build Better Scripts with PowerShell ArrayLists and Arrays

Often times when writing PowerShell scripts, you need a way to store a set of items. One common way to achieve this is with an array or specific type known as an ArrayList. But what is an array anyway? An array is a data structure that is designed to store a collection of items. This can include both same and different types of items.

Nathan Kasco Avatar Nathan Kasco

6 min. read

PowerShell ValidateSet: Choosing from a List

When you are writing a PowerShell script or function you often want to accept user input via parameters. If you don't limit the values those parameters accept, you can guarantee that there will be situations where inappropriate values are supplied. In this article, learn how to use the ValidateSet parameter validation attribute to limit those values to only ones you define.

Stuart Squibb Avatar Stuart Squibb

10 min. read

New-ADUser: Creating Active Directory Users with PowerShell

Are you tired of opening up Active Directory (AD) Users and Computers (ADUC), clicking around, making typos and going through the motions of creating a new user account for the sixth time today? If so, you need to automate the ever-so-common process of using Active Directory to add a user with PowerShell using the New-AdUser cmdlet!

Kevin Sapp Avatar Kevin Sapp

6 min. read

Running PowerShell Scripts With Jenkins and Git

Learn how integrate Git version control with Jenkins to then set up and schedule PowerShell scripts to run at predefined schedules.

Phillip Marshall Avatar Phillip Marshall

7 min. read

PowerShell ValidateScript: Running Validation Code

When creating PowerShell functions, validating input to parameters is important. Parameter validation allows you to limit what is passed to functions. In this article, you're going to learn how to catch problems before they become one with the PowerShell ValidateScript validation attribute.

June Castillote Avatar June Castillote

11 min. read

Logging Done Right with PowerShell and the PSFramework Module

Learning to establish clear Powershell logging guidelines with informative and actionable logs coupled with understanding logging options.

Bill Kindle Avatar Bill Kindle

12 min. read

How to Build a PowerShell Menu GUI for your PowerShell Scripts

It's weekend project time again and today you will learn how to build a lightweight system tray context menu where you can quickly and easily launch your most coveted PowerShell scripts. You can see below the end result.

Nathan Kasco Avatar Nathan Kasco

6 min. read

How To Build an Azure Usage Report with PowerShell

One of the most important aspects of running workloads in Azure is keeping track of expenses. How you do that is through tracking resource usage with an Azure usage report. In this article, you’ll learn how to create a PowerShell script to easily query resource usage across all of your Azure resources by date.

June Castillote Avatar June Castillote

9 min. read

Understanding Variable Scope in PowerShell

When you write a PowerShell script with no functions and no external dependencies on other scripts, the concept of PowerShell scopes isn’t of much concern. But as you begin to build functions, modules and learn to call scripts from other scripts, the topic becomes more important.

Tyler Muir Avatar Tyler Muir

10 min. read

Building an Active Directory Health Check Tool [In-Depth]: Part II

Learn about pre-built PowerShell framework that you can plug in other Active Directory health checks and output results to Pester and PRTG.

Alex Asplund Avatar Alex Asplund

10 min. read

How to Test Active Directory with a Health Check [In-Depth]: Part I

If you use, Active Directory (AD), it is probably the most important system you've got. Without it, users can't login, they probably can't browse the web, machines can't communicate and finance won't be able to generate their latest report. Be sure you test Active Directory with a health check script!

Alex Asplund Avatar Alex Asplund

13 min. read

The PowerShell WhatIf Parameter: Looking Before you Leap

Don't lie. You've done it before. We all have at some point in time. It doesn't have to be risky though when running PowerShell scripts in production. Just remember to use the built-in PowerShell WhatIf parameter!

June Castillote Avatar June Castillote

6 min. read

NuGet and IIS on Windows Server: The Ultimate Guide

So you've developed code. Great! Now you have to publish it to your users. But how There are many ways to accomplish this but one of the most used is NuGet. NuGet is a technology that allows you to publish code in the form of packages for others.

Tyler Muir Avatar Tyler Muir

16 min. read

Psexec: The Ultimate Guide

If there was a command-line utility that could compete with robocopy in terms of usefulness, it’s PsExec. The Sysinternals PsExec utility is as ubiquitous as they come in an IT admin arsenal. This tool allows administrators to remotely run commands just as if they were on the local computer.

Adam Bertram Avatar Adam Bertram

13 min. read

Subscribe to Adam the Automator

Get the latest posts delivered right to your inbox