The request subject name is invalid or too long

I had an interesting one recently when submitting a certificate request to a Windows Certificate Authority using certreq.exe.  The error that came back was: The disposition message is “Error Parsing Request The request subject name is invalid or too long. 0x80094001 (-2146877439)” I found several links to possible solutions but, as it turns out, the problem in… Read More »

How to enable Active Directory auditing

Despite Active Directory having been around for more than 10 years, I still find new implementations proceeding without directory service access auditing enabled.  For me, auditing of who does what, where and when in your directory is crucial information.  I can’t fully fathom why Microsoft doesn’t have it enabled with some sensible defaults out of the… Read More »

Powershell function to count files using Robocopy

Reading the post title you maybe wondering whether I’ve taken leave of my senses.  Why call Robocopy from Powershell to count files when Powershell has a perfectly good method of doing this natively? For example, (Get-ChildItem e:\powershell -Recurse -force | ?{! $_.PSIsContainer} | Measure-Object).count Well, the problem comes in when an individual file length exceeds 260… Read More »

Enable Strict Replication Consistency for new DCs using Powershell

Another short blog posting (brevity is obviously my thing for 2014). I occasionally come across environments in which Strict Replication Consistency is not enabled.  This is invariably because these environment have forests that were created with Windows 2000 server, but which have subsequently been upgraded.  If you need to know more about Strict Replication Consitency… Read More »

Find Primary Address in use within Exchange

Today’s post is another short one.  It’s a Powershell one-liner to find all the Primary SMTP address suffixes in use by the mailboxes in your Exchange Org. In this example I know that my default suffix is “contoso.com”, but I want to find out what others are being used as primary: get-mailbox -ResultSize unlimited | ?… Read More »

Is AppLocker Supported on Server Core?

Short answer:  No, AppLocker is not supported on Windows Server 2012 Server Core. Slightly more long-winded answer: My Google/Bing mojo failed to find a definitive answer to this question on-line.  In fact, I found two apparently conflicting sources of information. This was the first one: Windows PowerShell can used to manage AppLocker on Server Core installations… Read More »