The Surly Admin

Father, husband, IT Pro, cancer survivor

Pebble and Pushover

Want to send alets to your Smartphone and Pebble directly from Powershell? Read on!

Continue reading

August 5, 2013 Posted by | General, PowerShell | , , | Leave a comment

Using Powershell to get Adapter Information

Had an interesting thread come through on Spiceworks the other day that required some detective work with WMI.  In the past, when I did WMI calls with vbScript I usually had to Google it and find someone else who’d done what I wanted to do and modify their script.  But with Powershell you don’t have to dig through different blogs, or try to slog through the MSDN documentation, now you can just inspect the data and do it directly.  Here’s what I did.

Continue reading

May 20, 2013 Posted by | PowerShell | , , | 2 Comments

New Version: Employee Directory

I keep getting requests “Can I get this field?” or “Can I get that field?” for the Employee Directory script and honestly it wasn’t designed for that.  The header in the table has to be manually changed, and the JavaScript that does the button filtering has to be altered.  Not to mention the reverse engineering that has to occur because I don’t necessarily remember everything I did in the script 6 months ago!  So it was time to sit down with the script and see if there was something I could do about this.  Here’s what I came up with.

Continue reading

May 16, 2013 Posted by | PowerShell | , , | 121 Comments

New Version: Simple Server Status

Had someone at Spiceworks ask a question about a script they were trying to use so I asked them to post the relevant code and, lo and behold, it was my Simple Server Status script!  He was having a problem with authentication because the ID he was running the script under didn’t have rights and he needed to run the script with his domain level credentials.  Never got an answer as to why he couldn’t just run the script with those credentials, but modifying the script to use alternative credentials should be easy enough.  Of course, it never is.

Continue reading

May 7, 2013 Posted by | PowerShell | , , | 4 Comments

Generate Barcodes in Powershell

Work has been pretty busy, and is likely to be for the foreseeable future!  We’re remodeling our manufacturing area, adding a new lab on the 2nd floor (we never occupied the 2nd floor before!), adding 10 new wireless access points (VLANS, multiple SIDs, new wireless hardware platform, oh my!), implementing a new ERP system, planning for a new CRM system, rolling out new PC’s and laptops, new conference rooms, planning a remodel in our HQ building and a bunch of other things too!  If you noticed I didn’t post anything last week, that’s why.  Not to mention, nothing really interesting has come across my desk from Spiceworks or PowerGUI.  Then the boss mentioned he was working on something, and the more he talked about it the more I realized I might be able to do what he wanted in Powershell, especially since this wasn’t going to be a one-off kind of thing, but something we’d have to do on a regular basis!

Continue reading

April 29, 2013 Posted by | PowerShell | , , , | 11 Comments

Network Discovery – Part 2

Time for Part 2 of talking about Network Discovery, the Powershell version.  Part 1 can be found here.

Continue reading

April 16, 2013 Posted by | PowerShell | , , , | 1 Comment

Network Discovery – Part 1

My most popular script on Spiceworks, by far, is Network Discovery.  I posted it over 3 years ago, and actually wrote it much earlier than that!  Time to take another look at it and give it a Powershell make-over.  If you’re new to a company and want to find out the basics of what is going on, or a consultant going into new places all the time you’ll want to take a look at this script!

Continue reading

April 11, 2013 Posted by | PowerShell | , , , , | 5 Comments

Distributed Computing and Powershell

Great little script request came across on Spiceworks last week, something I’ve been looking forward to for a long time but never really thought I’d get a chance to do.  Time to unlock the power of Remoting in Powershell and dive into true Distributed Computing–not multi-threading, but Distributed Computing!

Continue reading

April 8, 2013 Posted by | PowerShell | , , , | 3 Comments

Using Powershell as a Telnet Client

One of the things I’ve been meaning to do is create a script to telnet to my various network devices and download the configuration as a poor man’s backup.  Well, recently this post came across Spiceworks and I felt it was time to take a deeper look at how to do this.

Continue reading

April 4, 2013 Posted by | PowerShell | , , , | 30 Comments

Getting User Information

There are about a hundred different scripts out there to get user information, and I wanted to add a new one to the list.  The “quirk” or difference for this one is that I pull in information from Spiceworks.  The idea is you will run this script to get a “snapshot” of a user at that time.

Continue reading

April 1, 2013 Posted by | PowerShell | , , , , | Leave a comment