Windows Azure Script – Create a New VM from an Existing VHD
Hello and welcome to another tutorial on using PowerShell with Azure in order to create a new Virtual Machine resource from an existing VHD. From time to time, we might […]
Office 365 Tenant – Get All Users List Script
In this article I will present to you a small script that lets us get a list of all users from a specific Office 365 Tenant. The Script: Import-Module AzureAutomationAuthoringToolkit […]
Counting the Number of Files in a Directory, Command Line Style
Recently, I needed to count the number of files in a directory on a Windows server. Here’s the command that can easily be scripted. It can also be used on […]
Script to Remotely List Windows Local Administrator Group Membership
The following script can be run against remote Windows machines, and will enumerate the contents of the remote server’s local administrators group. It requires Sysinternals PSExec utility, and must be […]
Powershell Script to Change from Static to Dynamic IP Addressing
I’ve been working on validating an email server migration plan which has required utilizing test servers isolated from the production network. Because they are offnet, I have to frequently switch […]
Script to Gracefully Close an Outlook .PST File So It Can Be Backed Up
I was listening to the latest episode of the Casting from the Server Room podcast this morning, and one of the discussions was about backing up an Outlook .pst when users […]
Script to Backup the Windows Server System State using NTbackup from the Command Line
Here’s a simple batch file script to backup the Windows Server 2003 System State to a removable drive: for /f “Tokens=1-4 Delims=/ ” %%i in (‘date /t’) do set dt=%%i-%%j-%%k-%%l […]
HowTo: Automatically Remove Files Older Than ‘X’ Days
Tape backups have failed me too many times, so I now do my Windows backup to an external hard drive. One of the office staff is in charge of swapping […]