Browse by Tags

All Tags » Scripts (RSS)

Updated Error Code Lookup Tool

The Microsoft error code lookup tool (which no Windows admin should be without) got updated today: http://www.microsoft.com/downloads/details.aspx?familyid=be596899-7bb8-4208-b7fc-09e02a13696c&displaylang=en&tm . While it says it's for Exchange...

Getting Total Installed Memory with WMI

Getting the amount of memory installed in a machine with WMI is a bit confusing particuarly if you only read the docs partially. I was initially using Win32_ComputerSystem::TotalPhysicalMemory, but the documentation warns "Be aware that, under some...
Posted by Brian Desmond's Blog
Filed under: ,

Script to Reset Local Administrator Passwords

I realized I hadn't posted this one answering a newsgroup post this morning. The attached script will iterate through a list of workstation names in a text file, ping them, and if the ping returns then reset the local administrator account password...
Posted by Brian Desmond's Blog
Filed under: ,

Script to Collect Local Administrators Membership from List of Machines

Another script I wrote the other day, this one will take an input file called workstations.txt and produce a CSV which is easy to view in Excel and look at the local administrators group membership for the list of machines. The script could easily be...
Posted by Brian Desmond's Blog
Filed under: ,

Script to Collect Basic Inventory Data From Machines

This is another useful script I sometimes use when I need to collect some basic inventory data from a list of machines. The attached vbscript takes an input file called workstations.txt and produces an comma separated output file called workstationinventory...
Posted by Brian Desmond's Blog
Filed under: ,

Script to Create Home Folders for OU

I thought I'd share the script attached at the end of this post as it's something I've seen requests for below. The script will take all of the users in a given OU (or really any subtree), and create a home folder for them and stamp the path...
Posted by Brian Desmond's Blog
Filed under: , ,

SecureCRT Script for Mass Changing Cisco Switch/Router Passwords

Attached to this post is a simple script which connects over either Telnet or SSH to a list of devices and resets the enable password, local password for the vty lines, and the console password. The script will login either with a username/password pair...
Posted by Brian Desmond's Blog
Filed under: , ,

Script to Dump Exchange Mailbox Info to Spreadsheet (CSV)

I found another useful script I wrote last year on my hard drive this evening. It's attached at the bottom of this post. This script will dump quite a bit of useful information about each mailbox on a particular server or set of servers to a CSV file...
Posted by Brian Desmond's Blog
Filed under: , ,

Nagios NSClient Agent Rollout Script

I'm a big fan of Nagios as a monitoring solution in environemnts large and small. The price can't be beat and the community around it is pretty good too. I have a zip attached to this post which contains a script I wrote to deploy the nsclient...
Posted by Brian Desmond's Blog
Filed under: , ,