Skip to content
Fish Eagle Limited
  • Home
  • Blog

Powershell: Counting messages processed by a Receive Connector

Recently I was doing some testing with a new Exchange 2010 Receive Connector and wanted a method to check how many messages it was processing.  I came up with the following Powershell snippet that seems to work well. $i = 0 do { $now = get-date (Get-MessageTrackingLog -ResultSize unlimited -Start “11/10/2012 3:00PM” -End $now -Server… Read More »

Category: Exchange Server PowerShell

Powershell: Using the whenCreated attribute in LDAP Filters

It is sometimes helpful to be able to search for objects in AD by their creation date.  The whenCreated attribute is useful for this as it is a replicated attribute (i.e. is consistent across all DCs).  The challenge for using whenCreated in LDAP filters is the syntax.  The attribute uses the GeneralizedTime syntax to represent… Read More »

Category: Active Directory PowerShell

Quest One Quick Connect no longer a Freebie

Quest Software make it hard to love them sometimes.  When they made Quest Quick Connect Express for Active Directory available at no cost it was a real boon for anyone wanting to synchronise objects from AD to AD (or AD LDS instances).  In particular it offered a great free method of achieving GAL Sync between… Read More »

Category: AD LDS / ADAM Exchange Server GAL Sync

Wellington Windows Infrastructure User Group

After an absence of a couple of years, the Wellington Windows Infrastructure User Group has been brought back to life!  If you’re in Wellington on Wednesday 4th July, come along and watch me and Daniel Bowbyes presenting on some Windows Server 2012 goodness. http://www.mscommunities.co.nz/Events/Wellington-Windows-Infrastructure-User-Group—Win.aspx

Category: Active Directory Windows Server 2012 Tags: Active Directory, User Group, Windows

Using the AD Powershell cmdlets to find inactive accounts

For a number of years now I have been using OldCmp  to find and remove inactive user and computer accounts.  The other day I thought I would have a crack at using the AD Powershell cmdlets to at least do the finding part.  It wasn’t as difficult as I thought.  Here’s an example looking for enabled… Read More »

Category: Active Directory PowerShell Scripting

Powershell script to move FSMO roles

I’ve had the script shown below for quite a while, but as I recently tested it successfully against Windows Server 2012 AD (Release Candidate), I thought I would share it with the community. Note that I have only tested it with single domain forests. Import-Module activedirectory [string] $menu = @’ Active Directory FSMO Role Holder… Read More »

Category: Active Directory PowerShell Scripting Windows Server 2012

The “RODC Connection (FRS)” misnomer

  Recently, I have been working in an Windows Server 2008 R2 AD environment that has a number of RODCs in branch offices.   The environment uses DFSR (i.e. not FRS) for SYSVOL replication an I wondered whether I could simply remove the connection objects named “RODC Connection (FRS)”.  To me, the use of “FRS” in… Read More »

Category: Active Directory Windows Server 2008 R2 Windows Server 2012

Powershell script to import message classifications

If you are in a cross-forest mailbox migration scenario and use Exchange message classifications, this script might be useful to you.  If you plan to have the same message classifications in the target Exchange Organisation then you will want the classification IDs to match.  Without this, there is potential for the classification on migrated mail… Read More »

Category: Exchange Server PowerShell Scripting

Powershell script to check for duplicate attribute values

Here’s a handy Powershell script to check for duplicate attribute values on AD objects.  Why is this useful?  Well, you might have provisioning systems that assign unique values (e.g. employeeID) to AD objects.  Things can start to go wrong if it turns out that more than one object has been assigned the same attribute value. … Read More »

Category: Active Directory PowerShell Scripting

Create new bulk AD delegations with Powershell

Here’s a Powershell script I wrote to delegate permissions to a service account to manage user objects within a number of OUs.  The script takes as input a file containing the distinguished names (DNs) of the OUs.  The approach should be reasonably obvious from the comments in the script.  The only complexity comes from having… Read More »

Category: Active Directory PowerShell Scripting
Post navigation
← Older posts
Newer posts →

Recent Posts

  • The EXO 3rd Party gateway bypass is even worse than you thought
  • MDI Access Key Generation
  • MDCA App Connector Deletion
  • Entra ID and Accidental Security Group Deletion
  • Browser support for Defender for Endpoint URL/Domain Indicators

Recent Comments

  • Manuel on Browser support for Defender for Endpoint URL/Domain Indicators
  • Raji Kaur on Entra ID and Accidental Security Group Deletion
  • Caio Bauab on Entra ID and Accidental Security Group Deletion
  • Mr.P on Entra ID and Accidental Security Group Deletion
  • SnackSOC on Browser support for Defender for Endpoint URL/Domain Indicators

Archives

  • April 2025
  • March 2025
  • October 2024
  • August 2024
  • April 2024
  • January 2024
  • August 2022
  • January 2021
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • January 2020
  • May 2019
  • April 2019
  • June 2018
  • April 2018
  • March 2018
  • November 2017
  • September 2017
  • August 2017
  • March 2017
  • June 2016
  • April 2016
  • March 2016
  • December 2015
  • November 2015
  • August 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • July 2014
  • May 2014
  • April 2014
  • March 2014
  • January 2014
  • December 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • May 2013
  • March 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • June 2012
  • May 2012
  • April 2012
  • February 2012
  • January 2012
  • December 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • May 2011
  • April 2011
  • March 2011
  • January 2011
  • December 2010
  • October 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008

Categories

  • Active Directory
  • AD LDS / ADAM
  • ADFS
  • Azure
  • Azure Active Directory
  • Azure AD Application Proxy
  • Azure AD Identity Protection
  • Azure Traffic Manager
  • B2B
  • Bitlocker
  • Certificate Authority
  • Conditional Acces
  • Entra ID
  • EOP
  • Exchange Online
  • Exchange Server
  • GAL Sync
  • Group Policy
  • Intune
  • KQL
  • MFA
  • Microsoft Defender
  • Microsoft Defender for Identity
  • Misc
  • Mobility
  • O365
  • Pass-Through Authentication
  • PowerShell
  • SAML
  • Scripting
  • SharePoint Online
  • Skype for Business
  • SQL Server
  • Uncategorized
  • Virtualization
  • Web Application Proxy
  • Windows 10
  • Windows Phone
  • Windows Server 2008
  • Windows Server 2008 R2
  • Windows Server 2012
  • Windows Server 2012 R2
  • Windows XP

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright fisheagle 2025
Iconic One Theme | Powered by Wordpress
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT