Tag: PowerShell

Resolve-DnsName: Resolving DNS Records with PowerShell

If you're managing web or mail servers, you know how heavily these servers rely on adequately configured DNS records. Missing DNS records can cause all sorts of problems, including users not being able to find your website or non-delivery of emails. It is a good thing that the PowerShell Resolve-DnsName cmdlet exists, and with it, monitoring DNS records can be automated through scripting.

June Castillote Avatar June Castillote

7 min. read

Getting Started using SSH with PowerShell

Know how to set up Windows' SSH client and get both Windows 10 and Windows Server set up to use SSH with PowerShell Remoting.

Adam Bertram Avatar Adam Bertram

5 min. read

Back to Basics: Conditional Logic with PowerShell If-Else

Scripts can make decisions. How? By using a concept called conditional logic. This concept is important to understand clearly when writing PowerShell scripts.

June Castillote Avatar June Castillote

9 min. read

Back to Basics: The PowerShell For Loop

When you use PowerShell scripts to manage systems or process bulk tasks, you'll undoubtedly encounter the need to use a loop construct as part of your scripts. There are many types of loops available in PowerShell, and one of them is the for loop.  The PowerShell for loop can make running the same set of commands on multiple items quickly and produce consistent results.

June Castillote Avatar June Castillote

8 min. read

How to Create Descriptive PowerShell Comments

When a newcomer to PowerShell begins to write scripts, they typically focus on the code. After all, the code is what makes things happen! Executable code is obviously important, but what happens when you write so much code, you forget what it does? This is when PowerShell comments can come in.

June Castillote Avatar June Castillote

8 min. read

How to Apply Azure DSC Configurations in Azure ARM Templates

If you're deploying Azure Windows virtual machines (VMs) via ARM templates and need to configure Windows, this article is for you. In this tutorial, you're going to learn how to use the Desired State Configuration (DSC) extension for ARM templates to seamlessly deploy and configure an Azure VM Scale Set with a single template.

Adam Bertram Avatar Adam Bertram

6 min. read

Managing Your Exchange Database to Be in Tip Top Shape

Any system administrator responsible for a Microsoft Exchange environment will, most likely, at some point need to manage Exchange databases. Instead of using the Exchange Admin Center admins can use the Get-MailboxDatabase, New-MailboxRepairRequest, and Move-DatabasePath PowerShell cmdlets to make it happen.

Adam Bertram Avatar Adam Bertram

4 min. read

Understanding Import-Csv and the ForEach Loop

Have you ever had to do the same task multiple times? Like, creating multiple Active Directory users one user at a time using the GUI? Or how about logging in to a server to delete old logs from some selected folders? If your answer is yes, then know you're not alone. Most admins have gone through the same laborious process.

June Castillote Avatar June Castillote

10 min. read

PowerShell and DevOps: Building a CI/CD Pipeline for a Module

You can build just about anything with PowerShell from teeny scripts to multi-hundred-line behemoths. But once you grow tired of creating PS1 script after PS1 script, you tend to start thinking of reusable tools via modules and combining PowerShell and DevOps.

Adam Bertram Avatar Adam Bertram

10 min. read

How to Build a User Onboarding Automation Routine with Power Automate

Do you have a clunky, old onboard automation workflow with a confusing interface and probably requires Java that your HR team hates to use? If so, it's time to learn how to rid yourself of your "onboarding solution" altogether with Power Automate (formerly known as Microsoft Flow).

Adam Bertram Avatar Adam Bertram

9 min. read

Back to Basics: The PowerShell Foreach Loop

Learn the different types of foreach loops available in PowerShell, and what to consider as to which one to use.

June Castillote Avatar June Castillote

9 min. read

How to Scour Office 365 Audit Logs for Suspicious Activity

This article will show you how you can use Hawk to automate site log collection and aid the search investigation.

Jeff Christman Avatar Jeff Christman

6 min. read

PowerShell: Get AD Group Members (and Exporting)

Learn how to use PowerShell to get AD group members and export AD group members to generate tons of interesting reports.

Adam Bertram Avatar Adam Bertram

7 min. read

PowerShell and Excel: Yes, They Work Together

Learn how to use PowerShell and the ImportExcel module, you can create charts, pivot tables and leverage other powerful features of Excel.

Adam Bertram Avatar Adam Bertram

5 min. read

Curl vs. PowerShell: Comparing Use Cases

Compare PowerShell and curl side-by-side to discover which one works best in various contexts.

Devin Rich Avatar Devin Rich

8 min. read

How to Automate Twitter Following

Are you on Twitter? If not, you're missing out. Twitter is the best social media platform to keep up with the fast pace of tech. But there are millions of people on Twitter. How do you track down interesting people? In this article, I'll show you how to do just at and automate it!

Adam Bertram Avatar Adam Bertram

7 min. read

Getting Started Running PowerShell Scripts in Jenkins

Learn to create Jenkins Powershell scripts by installing Jenkins, set up basic security, and enable the PowerShell plugin and run a job.

Jeff Christman Avatar Jeff Christman

8 min. read

Getting Started with the Chocolatey Package Manager [Walkthrough]

If you're struggling with managing and maintaining software across your environment, you're in for a treat. In this article, you're going to learn all about the ubiquitous package management tool called Chocolatey.

Francisco Navarro Avatar Francisco Navarro

11 min. read

Understanding Mocking in Pester

If you want to ensure your PowerShell code is in tip-top shape, you need to be unit testing it. Pester is a popular unit-testing framework built for PowerShell code that allows you to ensure the code you write is as you expect and stays that way.

Adam Bertram Avatar Adam Bertram

3 min. read

How To Use PowerShell and IIS to Automate Websites

Learn to use PowerShell to manage IIS in this hands-on guide where you'll create a website and learn how to manage IIS with PowerShell!

Bill Kindle Avatar Bill Kindle

11 min. read

Subscribe to Adam the Automator

Get the latest posts delivered right to your inbox