Azure Policy: How to Create and Remediate Compliance

A common theme in cloud environments today is the ability to define templates, policies, and procedures. These templates then dictate what can be done and verify that what does exist is correct. A service from Microsoft called Azure Policy is a great way to make that happen.

Adam Bertram Avatar Adam Bertram

5 min. read

Send-MailMessage: The PowerShell Way to Send Email

Learn the Send-mailmesage Powershell cmdlet. This is the Powershell way of sending emails in many different ways,

Adam Bertram Avatar Adam Bertram

6 min. read

Learn How to Code or Else: An IT Pro Guide

Are you still manually creating new virtual machines? Are you going into the Active Directory Users and Computers tool and creating, modifying or resetting passwords? If so, you may be looking for a new job in 5 years.

Adam Bertram Avatar Adam Bertram

3 min. read

Using PowerShell to Copy to the Clipboard

Learn how to use PowerShell to Copy to Clipboard and go away with the usual Control C and Control V function.

Adam Bertram Avatar Adam Bertram

3 min. read

Active Directory Database Size Monitoring: Building a Monitor

The Active Directory (AD) database is, by far, the most important piece of AD. After all, without the database, AD wouldn't be much good at all. AD needs to be up and active 24 hours a day. It's being depended on for many different services.

Adam Bertram Avatar Adam Bertram

2 min. read

DSC Without the Configuration: Using Invoke-DscResource

Prior to Windows Management Framework (WMF) v5, people that wanted to use Desired State Configuration (DSC) in PowerShell to apply configurations to their machines were forced to go through the same procedure if they wanted to provision an entire server or just install a single Windows feature.

Adam Bertram Avatar Adam Bertram

3 min. read

How to Create External PowerShell Help for your Functions

One of the most overlooked tasks of a PowerShell scripter is writing documentation and help. Scripters just want to write code and writing PowerShell help to provide the user information on how to execute that code is an often neglected feature. Help, however, is a critical piece of any good PowerShell tool especially when it's being released for public consumption or is part of an important business process.

Adam Bertram Avatar Adam Bertram

3 min. read

How to Create your First Chocolatey Package

Learn how to create a Chocolatey package (a popular Windows packaging manager) and get back to doing tasks that matter.

Adam Bertram Avatar Adam Bertram

2 min. read

How to Deal with Dependencies in Your Pester Infrastructure Tests

When writing Pester infrastructure tests, you'll ultimately run across a common problem; dealing with dependencies. Unlike unit tests, infrastructure tests actually run real code and touch the real environment. A real environment is complicated and full of dependencies on compute, networking, storage, etc.

Adam Bertram Avatar Adam Bertram

3 min. read

How to Find Active Directory Admin Accounts Authenticated by RODCs

Introduced in Windows Server 2008, read-only domain controllers (RODC) were a secure way to deploy DCs in remote locations. RODCs were read-only which meant that nothing could be directly written to them. This meant that a malicious attacker couldn't add his own user account and have it replicated back to all of the other DCs in an environment. It was much more secure than traditional domain controllers which allowed someone with the appropriate permissions to add objects at will to Active Directory.

Adam Bertram Avatar Adam Bertram

2 min. read

How to Connect to SQL Server from Linux

Learn how to connect to SQL Server from Linux!

Adam Bertram Avatar Adam Bertram

3 min. read

How to Manage and Automate AWS EC2 Snapshots with PowerShell

Amazon Elastic Block Store (EBS) is a service that provides storage for Amazon EC2 instances. EBS is what every volume on your EC2 instances runs on. When you rely on a service to run important infrastructure it's wise to ensure that data is backed up. In this blog post, learn how to manage and automate AWS EC2 snapshots using the PowerShell scripting language.

Adam Bertram Avatar Adam Bertram

5 min. read

How to use Python WinRM on Linux to Query Windows Hosts

PowerShell Remoting was a huge time-saver when it was introduced with PowerShell v2. Although PowerShell Core has introduced support for SSH, it's still possible to connect to Linux hosts over WinRM from Windows hosts using Python. In this blog post, you're going to learn how to connect to Windows hosts over WinRM using Python on Linux.

Adam Bertram Avatar Adam Bertram

3 min. read

How to Check for a Pending Reboot in the Registry (Windows)

Whenever you install software, updates or make configuration changes, it's common for Windows to need a reboot. Many OS tasks sometimes force Windows to require a reboot. When a reboot is pending, Windows add some registry values to show that. In this blog post, you're going to learn how to check for a pending reboot and how to build a PowerShell script to automate the task.

Adam Bertram Avatar Adam Bertram

7 min. read

How to Check your PowerShell Version (All the Ways!)

Learn every way check PowerShell version that you have on local and remote computers both the bad and recommended ways.

Adam Bertram Avatar Adam Bertram

4 min. read

Creating an AD Sync PowerShell Tool with a CSV File

Learn how to use a community PowerShell module called PSADSync to sync AD with PowerShell (users). We will cover how to set up a simple AD sync with a CSV file in this tutorial blog post.

Adam Bertram Avatar Adam Bertram

3 min. read

Understanding and Using AWS Profiles in Windows PowerShell

Learn how to work with AWS profiles in PowerShell and how to create and manage profiles including using the default profile.

Adam Bertram Avatar Adam Bertram

4 min. read

Windows 10: Hibernate vs Sleep

Learn in this article Windows 10 hibernate vs. Sleep. The two are differently placed in Windows 10. Find which one is best.

Adam Bertram Avatar Adam Bertram

4 min. read

How to Rename Amazon S3 Folder Objects with Python

Amazon's S3 service consists of objects with key values folder. Learn the Amazon S3 rename folder procedures using Python.

Adam Bertram Avatar Adam Bertram

3 min. read

Using PowerShell to set DNS search order on Windows

Do you need to set the DNS search order on a whole bunch of workstations or servers? Do you have PowerShell? Then you're in luck because I'm about to show you how to use PowerShell to set DNS search order on lots of machines at once!

Adam Bertram Avatar Adam Bertram

3 min. read

Subscribe to Adam the Automator

Get the latest posts delivered right to your inbox