Category Archives: Powershell

Quick Tip: PowerShell for Testlab DNS Entries

A quick post to cover building up the test lab DNS. Eventually these notes will appear in my test lab build series, but until then, this will give you the gist on how to automate this. The following code snippets … Continue reading

Posted in Active Directory, Deployment, Powershell, Scripting, Test Lab | Tagged , , , | Leave a comment

File Server Resource Manager Quota Adjustment – Quick and Dirty

DR tests are fun.  Manually flipping file servers w/ Robocopy as the synchronization mechanism is not.  Hurry up, Server 2016, you’re my only hope. We ended up having to make some quota adjustments on the fly to handle data changes … Continue reading

Posted in Disaster Recovery, File Services, Powershell, Scripting, Uncategorized | Tagged , , | Leave a comment

Test Lab Build Series – 1 – Planning

The first part of any environment build, be it a test lab, a development platform, or even a production environment, is planning.  Arguably the 2nd most important task in any project is this step, because it is going to guide … Continue reading

Posted in Deployment, Installation, Management, Powershell, Scripting, Test Lab | Tagged , | Leave a comment

Exchange 2013 Hybrid Configuration Wizard Fails to Connect When Updating

Recently I ran into a problem preparing for the April 15th TLS Cert Update from Microsoft.  We would get to a point in the Hybrid Configuration Wizard and it would fail to connect in a spectacular fashion: You can see … Continue reading

Posted in Exchange 2013, O365, Powershell | Tagged , , , , | Leave a comment

Exchange 2013 Powershell Script: Check CAS Health v2

Back when we were first putting in Exchange 2013 I wanted a way to check the Client Access Server roles as we were deploying servers to make sure that they were coming up okay.  Thankfully, the Exchange 2013 team was smart … Continue reading

Posted in Exchange 2013, Monitoring, Powershell | Tagged , , | Leave a comment

Exchange 2013 Powershell Script: Get DAG-wide Mailbox Statistics

While preparing for our On-prem -> O365 migration of a subset of our users, we ran across the need to gather mailbox statistics so that we could create the migration batches based on metrics. It’s pretty simple for us to … Continue reading

Posted in Exchange 2013, Management, Powershell | Tagged , , , | Leave a comment

Exchange 2013 Powershell Script: Get System Wide Message Queue Status

Ran into a case where we had some delivery issues to our O365 hybrid tenant, and realized I’d never figured out a good way to take a look at all of the queues at once, and lets face it, the … Continue reading

Posted in Exchange 2013, Management, Monitoring, O365, Powershell, Uncategorized | Tagged , , , , , | Leave a comment

Powershell Code: How to Extend Password Age in Active Directory

We have a subset of users whose passwords are not expired while they are in a certain stage of their existence.  We store these accounts in 1 particular OU, and once they are ready to move on to their next … Continue reading

Posted in Active Directory, Management, Powershell | Tagged , , | Leave a comment

Powershell: Exporting a CSV of Computer Data

I had an urgent request to pump out some data regarding a list of computer accounts similar to this: I thought “No problem, a quick ‘Get-ADComputer’ piped to ‘Export-CSV’ and we’re golden.  Except for the fact that Export-CSV doesn’t handle … Continue reading

Posted in Powershell | Tagged , , | Leave a comment