Category Archives: PowerShell

Configuring Azure AD Sync Attribute Filtering.

So I’ve been playing with AADSync attribute filtering. So far we have successfully filtered our lab Azure AD sync by Domain and Organizational Unit. It appears that group membership based filtering is not supported with this version. But according to … Continue reading

Posted in Active Directory, Active Directory Domain Services, AD Forest, Azure Windows PowerShell, Office 365, PowerShell | Tagged , , , , , | 2 Comments

Resolving Hyper-v Error: “‘Unnamed VM’ could not initialize… The security ID structure is invalid.”

While moving my Lab to a new environment using the Hyper-v Export and Import VM options, I ran into an “‘Unnamed VM’ could not initialize… The security ID structure is invalid” error when trying to start the Domain Controller Virtual … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, Hyper-v Manager, Microsoft Hyper-v, PowerShell, Powershell 4.0, Uncategorized, VHDX, Virtual Machines, WIndows 8.1, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , | 1 Comment

Configuring Windows Server 2012 R2 DHCP Failover with PowerShell and Resolving Custom Options Error 20010.

For the first time, WS 2012 R2 offers a true DHCP failover and load balance solution that works. After recently migrating to Windows Server 2012 R2 DHCP, I went a step further to configure failover to a partner server with … Continue reading

Posted in DHCP, DHCP Failover, DHCP High Availability, PowerShell, Powershell 4.0, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , , , , | Leave a comment

Interactive PowerShell 4.0 Script Automates Active Directory User and Mailbox Creation.

In line with the objective of streamlining and automating new employee/user creation process for help desk/level 1 support, I wrote the following PowerShell script to help precisely define the steps in the process, further reduce the chance for human error … Continue reading

Posted in Active Directory, PowerShell, Scripts, WIndows 8.1, Windows Server 2012 R2 | Tagged , , , | 2 Comments

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 , , , | 2 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 Active Directory Time using the W32TM Utility.

Active Directory domain time in my lab domain has been off by a few minutes of UTC time for a while now. Resetting time across an Active Directory domain is a straight forward process using the W32tm command line tool. … Continue reading

Posted in Active Directory, Active Directory Domain Services, Active Directory Time, AD Forest, Domain Controller, PowerShell | Tagged , | 1 Comment

Creating Resource Mailbox Resource Property Schema in Exchange Server 2010.

We’ve added a few conference rooms and Equipment mailboxes and I decided to add custom resource properties to distinguish the rooms and equipment . The properties indicate what features are specific to a resource like the conference room conference call … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, Microsoft Exchange, PowerShell | Tagged , | Leave a comment

Configuring Network Adapter TCP/IP Settings using Powershell 4.0 Cmdlets .

PowerShell 4.0 is a requirement for these cmdlets to work.The GUI( Graphic User Interface) is commonly used to configure network adapter settings or the good old netsh command. But if I had to work with Hyper-v core or Windows Server … Continue reading

Posted in Hyper-v 2012 R2, PowerShell, Powershell 4.0, WIndows 8.1, Windows Server 2012 R2 | Tagged , , , , , | Leave a comment