PSMetrics Part 2: PowerShell Collector
Welcome back for part 2 of the series. In this post, I’ll be putting together a simple collector script with PowerShell for gathering metrics on a Windows host, and sending the data to the ingestor.
Welcome back for part 2 of the series. In this post, I’ll be putting together a simple collector script with PowerShell for gathering metrics on a Windows host, and sending the data to the ingestor.
Metrics are a necessary evil in the IT world. A good set of metrics helps us to diagnose problems in our environments and plan for future growth.
Sometimes, you need to tattle on a user to their manager. But how to find out who their manager is, and their email address? Here is how I did it with PowerShell. At my job, stale user accounts are not tolerated. Inactive accounts are disabled after a period of time, with no warning. However, I wanted to at… Read More »
I’ve been asked how to automate the download of fresh definitions for SCEP definitions in an enterprise environment, so here is an easy way to do it with PowerShell.
Just a little snippet which will show you how to write a string value to the registry with Visual Basic 6.
Like a lot of smartphone users, I like to take pictures. These pictures get automatically synced to my cloud storage, dumping them in a single folder called “Camera Roll”. I came up with a quick Powershell script to organize these photos by year and month.
I recently had a need write records from a database to text files, with one file per record. This post covers how I did it, with VBScript. This project was actually part of a much larger project, which in reality was one of those “Let’s see if I can do it” type of projects. It turned out successful,… Read More »
When you manage an Active Directory infrastructure that spans multiple sites, it is a good idea to test the ability of clients to successfully authenticate against domain controllers in other sites.
Need to find every workstation that a user has logged on to? Security event logs rolled over or you can’t otherwise get that info from the domain controllers? Here is a way to get it.
Some time ago, I wrote an app that required the ability to resolve hostnames to IP Addresses, and vice versa. After some searching around, I found this gem. I don’t recall exactly where I found it, but this little chunk of code has served me well, lo these many years. It contains two functions: The functions do exactly… Read More »