In this post, I will explain how you can easily change the IP configuration for a server's NIC from...
Tag Archive for: powershell scripts
4sysops - The online community for SysAdmins and DevOps
Create a certificate request file with alias support using a PowerShell script

The PowerShell script discussed in this post uses certreq.exe to generate certificate signing request (CSR) files with a maintained...
A PowerShell implementation of netstat.exe

My PowerShell module PSNetStat contains the Get-NetStat function that offers features similar to the popular netstat.exe command. You can...
Displaying PowerShell members with my Format-Member function

With the help of my Format-Member function, you can display members from PowerShell objects in a formatted way. This...
Using PowerShell and custom templates to create new users

A popular use of PowerShell is to create all the IT resources that new users need, including Active Directory...
PowerShell script for creating a new Azure VM using a disk snapshot

Creating a new snapshot using an existing disk of an Azure virtual machine (VM) requires three steps. First we...
Control Outlook AutoDiscover using registry and PowerShell

Controlling the behavior of Outlook AutoDiscover using the registry is not a new idea. Indeed, it has been around...
Processing CSV data in PowerShell

In this post, I explain how to create a PowerShell function to process CSV data. This allows you to...
Monitoring Windows services with PowerShell

To monitor the state of Windows services, we can even turn to PowerShell. This post's script will send you...
Windows 10 in-place upgrade with PowerShell and MDT

In this article, I will demonstrate how to use Microsoft Deployment Toolkit (MDT) and PowerShell to create a reusable...
Capture network traces with the PowerShell module NetEventPacketCapture

Every network admin will at some point need to capture and view network events to help troubleshoot network issues....
Creating an Active Directory domain with PowerShell DSC

With the help of PowerShell DSC, you can automate the creation of an Active Directory domain. This includes promoting...
WSUS reporting with PowerShell

If you quickly want to find out if a particular update has been installed on all of your machines,...
Remove HKCU registry keys of multiple users with PowerShell

If you have supported software in an organization of any size, trying to remove HKEY_CURRENT_USER (HKCU) registry keys from...
Building a computer reporting script with PowerShell

The PowerShell script discussed in this post catalogs your Active Directory (AD) environment, figures out all the systems that...
Rename an Azure VM with PowerShell

Recently I had to change the name of a few Azure virtual machines (VMs) and was quite surprised that...
Install and schedule Windows updates with PowerShell

The PowerShell script described here enables you to install Windows updates more flexibly than with Windows Server Update Services...
Add multiple data drives to an Azure VM with PowerShell

The script in this post allows you to automate the process of adding data drives to multiple Azure VMs...
Clone an Azure VM with PowerShell – Part 2: Copy the data drives

This post continues my series about cloning an Azure virtual machine. The script I'm going to discuss today copies...
Clone an Azure VM with PowerShell – Part 1: Copy the VM

In this series of three articles, I'll show you how to clone an Azure VM with PowerShell. This article...