Resolve-DnsName: Monitoring DNS Records using 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

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

The PowerShell Block Comment (And Creating Descriptive 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

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

Export-CliXml and Import-CliXml: Saving Objects to XML

Learn how to use the Export-CliXml and Import-CliXml cmdlets and how CliXml format is different from the standard XML document format.

June Castillote Avatar June Castillote

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 Monitor for Large Office 365 Mailbox Size with PowerShell

Learn the basics of how to create a script to report on large mailboxes in Office 365 and the components of the script and its requirements.

June Castillote Avatar June Castillote

7 min. read

Running 64-bit PowerShell Scripts and Modules in Jenkins

Learn the different methods to execute 64-bit PowerShell scripts in Jenkins including using the Invoke-Command cmdlet.

June Castillote Avatar June Castillote

8 min. read

How To Manage Files Between Local And Azure Storage With AZCopy

Automation is everywhere nowadays in IT. From virtual machine provisioning to web site deployment, automation is key especially when you need to deal with multiple items. Even file management between Azure storage and your local machine can be automated using a utility program called AzCopy.

June Castillote Avatar June Castillote

6 min. read

How to Download and Install the AZCopy Tool

The AzCopy tool is a free and handy tool that allows you to copy and move data to and from Azure storage. It's a great command-line utility that can automate and streamline the process but requires some setup.

June Castillote Avatar June Castillote

5 min. read

How to Generate an Azure SAS Token to Access Storage Accounts

There are a few different ways you can delegate access to resources in Azure. One way is via a Shared Access Signature (SAS) token. A SAS token is a way to granularly control how a client can access Azure data. You can control many things such as what resources the client can access, what permission the client has, how long the token is valid for and more.

June Castillote Avatar June Castillote

4 min. read

How To Move Azure Virtual Machines to Another Region

Azure virtual machines (VMs) can be deployed to various Azure regions. Choosing which virtual machine to deploy to which region could be based on many different factors. These factors may include disaster recovery, high-availability, and geolocation to name a few.

June Castillote Avatar June Castillote

9 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

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

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

How to Set Up an Office 365 SMTP Relay with Connectors

Learn how to create a TLS and non-TLS Office 365 SMTP relay and how to test and confirm their functionality using different techniques.

June Castillote Avatar June Castillote

9 min. read

How to Send Email with Office 365 Direct Send and PowerShell

Did you know you can use Office 365 to send email with PowerShell? In this article, you're going to learn how to use Office 365's SMTP services to send mail with PowerShell's Send-MailMessage cmdlet.

June Castillote Avatar June Castillote

4 min. read

How to Build an IIS SMTP Relay Server

Learn how to set up an IIS SMTP relay server for recipient email delivery from Office 365 using a combination of the GUI and PowerShell.

June Castillote Avatar June Castillote

7 min. read

How to Build a PowerShell GUI for your Scripts

PowerShell is a command-line tool but did you know it can also be used as a base for graphical interfaces? Sometimes command-line isn't the best kind of interface for a particular instance. Building a PowerShell GUI for for your service desk is a great example. This is one of those times when it is more appropriate to build graphical tools instead.

June Castillote Avatar June Castillote

8 min. read

Subscribe to Adam the Automator

Get the latest posts delivered right to your inbox