The Surly Admin

Father, husband, IT Pro, cancer survivor

Get File Counts and Size for All Extensions

Inspired from this script, I decided to expand on it and have Powershell get all of the extensions and report on everything.  I also decided to pretty up the report using some HTML.  Read on for this quick hit!

Continue reading

November 26, 2012 Posted by | PowerShell | , | 3 Comments

Happy Thanksgiving!

I’d just like to wish you and your family the best Thanksgiving wishes.

Stay safe, stay sane and remember what’s really important to you.

November 22, 2012 Posted by | General | Leave a comment

Who’s Logged in Where?

Interesting script request through Spiceworks last week, where QQQ was asking to find out who was logged in on his computers at any given moment.  This seemed like a relatively easy script to throw together, here’s how I did it.

Continue reading

November 15, 2012 Posted by | PowerShell | , | Leave a comment

Get File Sizes by Extension

As I’ve mentioned before, I enjoy trolling the scripts at Spiceworks and converting the vbScripts that are interesting over to Powershell in an attempt to see if I can not only shorten them, but improve them.  One interesting example came by last week, the Get File Size for a Specific Extension script.  Here’s what I did with it.

Continue reading

Advertisement

November 10, 2012 Posted by | PowerShell | , , | 4 Comments

Veeam Backups – Wait for Jobs to Finish

If you have Veeam Backup and Replication software, you know what a great backup program it is.  You also know it completely lacks any ability to copy its backup files to tape or external media–though Veeam is saying that with their next major release they will have this capability.  Until that happens we need to use another program to copy these files and to do the few things Veeam can’t do, I use Backup Exec for these tasks.  But one thing that’s lacking is any real tie between Backup Exec (BE) and Veeam.  What do I mean by that?  I schedule my weekly copy of Veeam backup files and hope that the Veeam backups are actually done before it runs.  This simple script takes the guess work out of it and puts you back in control.  Read on to see what I mean.

Continue reading

November 8, 2012 Posted by | PowerShell | , , | 1 Comment

Busy Weeks

No post today for a couple of reasons.  Last two weeks have been remarkably busy, what with my backup server crashing 2 weeks ago (here) and then one of our ERP’s crashing last week–yes, we have two, don’t ask!–I just haven’t had time to work on my script projects.  It’s also been pretty quiet on the Spiceworks front so nothing really interesting coming across there.

Continue reading

November 5, 2012 Posted by | General, Technical | Leave a comment

More on String Performance

Was reading another blog from Tome Tanasovski and he was doing a simple series on learning Powershell.  One of his suggestions was taking a large dictionary file and finding all of the five letter words and locating the Palindromes.  I thought this would be interesting, and another opportunity to look at performance and Powershell.

Continue reading

November 1, 2012 Posted by | Powershell - Performance | , , | 3 Comments