Category: Active Directory
-
Remove Active Directory Domain Services (ADDS) from a WS2012 R2 with PowerShell.
I decided to tear down my Azure Lab IaaS and ASR infrastructure and rebuild it. The process involves removing the ASR configurations, Recovery Vaults, S2S VPNs, VNets and Azure VM running as a Azure based Domain controller for resilience with on-premise infrastructure and Azure deployed Apps. The next steps will include uninstalling the Domain Controller,…
-
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 name is : TobeGray@contosolabs.com Email Address is : Tobe.Gray@contosoconsults.com To match the On premise logon…
-
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 and cut down time to finish the task. The interactive PowerShell script accepts user input…
-
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 domain environment.Also, the script will not work on Windows Server 2003 Active Directory Domain Controllers…
-
PowerShell Script uses Split() Method to display Active Directory Users’ Organizational Unit and other Properties.
A colleague was trying to generate a report of Active Directory Users, displaying their Organizational Unit and PasswordNeverExpires property status. Normally this should be very simple, but they ran into a small snag. The Active Directory module at the time of this writing which is PowerShell 4.0 does not have a direct Organizational Unit property…
-
Creating New Equipment Address List in Exchange 2010.
The steps and cmdlets below enabled me configured a separate address list in Exchange 2010 to manage all Equipment. Create the Address List and specify the Recipient Filter: [PS] C:\>New-AddressList -name “All Equipment” -RecipientFilter {RecipientType -eq “UserMailbox” -and RecipientTypeDetails -eq “EquipmentMailbox”} Run the Update-AddressList on the New Address List: [PS] C:\>Update-AddressList -Identity “All Equipment” To…