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