About once a year I work from home like a scumbag for a week to get all my big code re-writes done. Throughout the year I write fixes, add new scripts and functions as needed, and then clean everything up, document things properly, add comments, get everything actually working in this week. That week is now upon me, and there are a bunch of things I wish that I didn’t keep having to re-write, or update, or rip out, or whatever.
Continue reading Things I wish I hadn’t done while writing PowerShell stuff for work
After configuring the SAN, the next thing you’re going to need to do is get Windows fully configured and joined to the cluster. The cluster configuration portion of things is actually relatively simple, just validate cluster again and again until it passes, then create the cluster. There’s some stuff you’ll want to do beforehand to ensure the cluster doesn’t start doing dumb stuff and that you’re able to validate without any real struggles.
Continue reading Hyper-V 2016 Cluster with Dell PowerVault MD3420 SAS – Part 2 Cluster Configuration
After installing the PowerVault Modular Disk Storage Manager (MDSM) and rebooting you should be able to launch it and proceed. Click Add Storage Arrays from the top of the list and go through the automatic setup. Rename your SAN as needed, and configure your email/SNMP settings as appropriate. Add any feature licenses, do whatever base configurations you need to do before you get to the part where you have to start configuring the storage.
Continue reading Hyper-V 2016 Cluster with Dell PowerVault MD3420 SAS – Part 1 SAN Config
We’ve had some issues with admins improperly applying permissions in the past, and in recent times as well. Because of this, we’ve decided that maintaining permissions change logging to determine who it is that’s having issues learning how to apply permissions can get some extra training on how to appropriately set file ACEs. The issue with doing this is that it generates ~40GB of compressed Windows logs daily, or closer to 100GB uncompressed. So, how can we use PowerShell to parse through the binary logs, store the info we need, and then get rid of the relatively gigantic evtx files?
Continue reading File server permissions change auditing.
Today I got a half-joke request from a colleague to write script to help him audit service accounts across a multitude of servers. Initially, I didn’t see the use of writing a full script to do this for myself and my AD environment so I fired off this from my phone as a quick/dirty version.
Continue reading Powershell Script to Audit Service Accounts Across All Servers
Trying to install Exchange 2013 Management tools on Windows 8.1 is likely to present some problems by default. Unless you’ve already installed the IIS components required by Exchange you’ll get an extremely unhelpful error message when trying to install, saying that it cannot be installed on a client-based OS.
Continue reading Exchange 2013 Management tools on Windows 8.1 and Windows 10
Our fileserver was running low on space and still growing at about 80GB/month. Rather than throw more storage at it, which would only buy us another few months before we had to do it again, I figured I’d look for something that would archive unused data to secondary storage, without rendering it unreachable.
Continue reading Online File Server Archiving with PowerShell
We’re in the middle of an Exchange 2007 to 2013 On Premise migration, and we haven’t been having the best time. After a major mail crash in 2011, every time we’ve attempted to move off the recovered server, either to Exchange 2010 or to a freshly built Exchange 2007 setup, we’ve encountered major, migration stopping issues.
Continue reading Exchange 2013 2007 CoExistence Frozen Transport Queues
While working to get rid of all our 2003/2008 DCs to get our AD to a 2012 Native level I came across one 2008 DC that was extremely difficult to rid ourselves of. It was created about a year ago to replace our 2003 FSMO master, and had been running without major issue since then. After building a new 2012 VM, and DCPromo’ing it, I transfered the FSMO roles to a stable server and set out to demote and decommission the 2008 machine. Upon running dcpromo from an admin shell, the system began to detect the ADDS binaries, and failed. The message it failed with was an extremely helpful “Failed to detect if Active Directory Domain Services binaries were installed. The error was: An error with no description has occurred.” Lovely.
Continue reading dcpromo fails with An error with no description has occurred on Server 2008R2
Going through my site-stats, and list of common referrers I found a few neat things, the first is that Google provides about 98% of my traffic. That wasn’t surprising, but I’m interested in the following two referrers, which are rather frequent, and are not public websites.
Continue reading Things that make me happy…