Category Archives: PowerShell 3.0

PowerShell Script to Bulk Update UPN (UserPrincipalName) Suffix in a Single Non-Routable Domain.

As part of the Office 365 Configuration and migration project, we’ve had to define and create an alternate upn (UserPrincipalName) suffix for an internal Active Directory domain that is not publicly routable. Updating the upn for every user in the … Continue reading

Posted in Active Directory Domain Services, Office 365, PowerShell, PowerShell 3.0, Powershell 4.0, Script, Scripts, Windows Server 2008 R2 Backup, Windows Server 2012 R2 | Tagged , , , , , , , , , | Leave a comment

Create a UPN Suffix using PowerShell for Office 365 Migration.

In preparation for Office 365 migration, we had to match the current on premise users’ logon name (UserPrincipalName) with their email addresses to eliminate any user confusion and ease the outlook authentication process .As an example, The on premise logon … Continue reading

Posted in Active Directory, Active Directory Domain Services, Azure Windows PowerShell, Office 365, PowerShell, PowerShell 3.0, Powershell 4.0 | Tagged , , , , , | 4 Comments

Raising Active Directory Forest and Domain Functional Levels Using PowerShell.

As part of the infrastructure clean up and upgrade plans, we have decided to raise the DFL and FFL of our domain to take advantage of new Windows Server features. The first step in the process is making sure all … Continue reading

Posted in Active Directory, Active Directory Domain Services, Active Directory Replication, AD Forest, Domain Controller, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2, Windows Server 2008 R2 Backup | Tagged , , , , , | Leave a comment

Simple PowerShell Script displays Total and Available Memory .

This script is an update to a previous post. In addition to displaying total and available disk space, it will also show the available memory at any given time for a server within a domain infrastructure. It has come in … Continue reading

Posted in Active Directory Domain Services, AD Forest, Hyper-v, Hyper-v 2012 R2, PowerShell, PowerShell 3.0, Powershell 4.0, Script, Scripts, Windows Server 2012 R2 | Tagged , , , , , , | Leave a comment

Configuring AD Group Filtering with Microsoft Azure AD Connect Tool.

Microsoft has finally introduced Active Directory group filtering with the release of Azure AD Connect. The one tool to replace AADSync and include ADFS functionality.In this post, I will outline my steps for setting up AAD Connect with Single sign-on, … Continue reading

Posted in Azure AD Sync, Azure Windows PowerShell, Directory Synchronization, Office 365, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2012 R2 | Tagged | 1 Comment

Generate Office 365 User License Report with PowerShell.

As we continue expanding our Office 365 deployment from OfficeProPlus to include Exchange Online and Archiving, it’s become increasingly necessary to reconcile and report on current AD Synced and cloud users with their specific subscription and licenses quickly and efficiently. … Continue reading

Posted in Azure Windows PowerShell, Office 365, PowerShell, PowerShell 3.0, Powershell 4.0 | Tagged , , , , | 1 Comment

PowerShell Script Monitors Security Logs and Sends Email Alerts.

I wrote this PowerShell script to send email alerts when Active Directory User Account, Security and Distribution Group Management events occur in the Security logs.A few parameters will need to be edited to adapt the script to any Active Directory … Continue reading

Posted in Active Directory, Active Directory Domain Services, Audit Logs, Domain Controller, Event Logs, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2 Backup, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , | 3 Comments

Uninstalling Software with Powershell.

I have a number of Hyper-v Windows Server 2012 R2 core host machines in my environment. Once in a while, I have to check for installed software and uninstall software for maintenance. The following WMIObject class helped me achieve the … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, Microsoft Hyper-v, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2 Backup, Windows Server 2012, Windows Server 2012 R2 | Tagged , , | 5 Comments

Starting a saved virtual machine–with a missing virtual hard disk

Reblogged from Ben Armstrong’s Virtualization Blog . I came across a person with this problem on our forums recently: If you have a virtual machine that is in a saved state, but one of the virtual machines disks is now … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, Hyper-v Manager, PowerShell, PowerShell 3.0, Powershell 4.0 | Tagged , , , , , | Leave a comment

Configuring NIC Teaming on Windows Server 2012 R2 using PowerShell.

I want to quickly write about creating NIC teams on Windows Server 2012 R2 Cluster hosts for virtual machine access to the public network. There are a number of parameters to consider when creating a NIC team on this platform, … Continue reading

Posted in Hyper-v 2012 R2, Network Load Balancing, NIC Teaming, PowerShell 3.0, Powershell 4.0, Windows Server 2012 R2 | Tagged , , , , | Leave a comment