The Surly Admin

Father, husband, IT Pro, cancer survivor

New Module: PSSplunkSearch

As often happens when I’m doing my day to day job, I’m asked to start watching something. I go to the website of our app (in this case Splunk), type in the query and do the search. Have to do this 4 or 5 times throughout the day. I don’t know about you, but I find this really annoying. I’m not entirely sure why, but just typing something at the command line is just so much easier for me, better yet just writing a quick script with all my parameters in it and running it for a quick look. And hence, PSSplunkSearch is born–because spending 4-5 days writing a new module to complete a task I only had to do for one day is totally efficient, right?

Continue reading

March 1, 2021 Posted by | General | , | Leave a comment

New Module: SimpleADAdmin

Another day another module.  Using PowerShell Gallery to publish modules and make them available to all is really a game changer.  I’ve been finding myself repackaging old scripts into modules and publishing them (see PSHTMLTools) and SimpleADAdmin is no exception.  It’s basically Get-SAUser but now in a module.

Checkout out the blog post about it, and you can read the documentation on Github. Installation is easy:

Install-Module SimpleADAdmin

In the future, I want to add Get-SAGroup to the module to allow you to manipulate and locate groups much easier.  Enjoy!

May 23, 2019 Posted by | PowerShell | , | Leave a comment

A Practical Guide to GitHub for the PowerShell Scripter

When I first started dipping my fingers into the GitHub pool, it was because I really felt there was a need.  Version control was becoming an issue and having to re-write code I’d already perfected because of a glitch somewhere on the way–translation: accidentally deleting the wrong file–was something that just had to be addressed.  And, I think like a lot of PowerShell scripters, I soon started asking questions like:  WTF is this?  What is going on?  Who came up with this crap?  I’m no expert, but read on if you’re interested in learning how to use PowerShell and GitHub together.

Continue reading

February 22, 2016 Posted by | PowerShell, Technical | , , , , | 1 Comment

Powershell – Steep Learning Curve?

This has come up at Spiceworks a couple of times, the which should I learn discussion. vbScript or Powershell? Considering the theme of this blog I don’t think you need to ask which camp I stand in. But what about this steep learning curve? Here are my thoughts.

Continue reading

March 28, 2013 Posted by | Powershell - Getting Started | , , | 11 Comments

Multithreading Revisited – Using Jobs

I wrote about multithreading using Runspace here, but I also wanted to talk about running them the Powershell way using jobs.  I want to make sure I give credit where it’s due, because most of my work in Jobs is based on Ryan Witschger‘s work.  He writes a great Powershell blog called (great site name, too).  Anyway, read on for my riff on Powershell jobs and the 3 step process you need to use them.

Continue reading

March 4, 2013 Posted by | PowerShell, Powershell - Performance | , , , , , , | 13 Comments

Exporting Sites in Sharepoint

I think I’ve mentioned this before, but at work we are divesting one of our business units which is requiring us to split up a lot of data.  One of the bigger challenges has been what to do with our Sharepoint site.  At SeraCare we make very extensive use of our Sharepoint server and have a nearly 80gb database!  This made the upgrade from Sharepoint 2003 (not WSS 3.0) to Sharepoint 2010 pretty challenging, let me tell you!  Now I have to pick up over 800 sites from our Intranet and send it over to the IT department of this divested business unit.  Here’s how I plan to do it.

Continue reading

February 25, 2013 Posted by | PowerShell | , , , , | 6 Comments