Archive for the ‘Batch/CMD’ Category


Make a Choice

Wednesday, March 28th, 2007 by Jeffery Hicks
During my sessions at Techmentor Orlando 2007 on automating with batch files, a few of my samples used the CHOICE command. I never had time to fully explain it, hence the purpose of this entry. CHOICE, when used in a batch file gives you the ability to prompt the user to make, what else, a choice.   More »

Group Membership with DSQuery/DSGet

Monday, February 19th, 2007 by Jeffery Hicks
Recently I was helping out in a scripting forum. The topic was getting a report of all groups and their members. I have several VBScripts to do this, but an even easier and faster way is to use the DSQuery and DSGet commands from the command line. Want to see all the groups in your domain or forest simply run…   More »

Philosophy Of Automation

Wednesday, January 10th, 2007 by Jeffery Hicks
Last month Jeffrey Snover had an excellent post on his Philosophy of Automation. I'd like to add my 2 cents to the discussion. This is a concept I've espoused my entire career. I'm always looking for ways to get more done faster with less. I expect many of you are interested in this as well or you wouldn't be here.   More »

Write Scripts – Win Prizes! Including a pass to TechEd 2007!

Tuesday, January 2nd, 2007 by Don Jones and SAPIEN Technologies announce the Automation Challenge 2007! This is your chance to submit your Windows administrative scripts - in any Windows-based scripting language - and win some great prizes.

All your script needs to do is accomplish some Windows administrative task. Our contest page at includes some tips for writing the best script possible (one sure ...   More »

Blog Followups and Comments

Thursday, December 21st, 2006 by Jeffery Hicks
We truly appreciate all the comments and feedback you've been giving us on our blog entries. We've tried to respond to comments in a timely manner. You are still welcome to leave comments. However, if you have a question that requires an answer or a problem trying something we've blogged about, we're hoping you'll post something in the forums at   More »

Make an Old Friend Do Your Work

Monday, December 18th, 2006 by Jeffery Hicks
I've been revisiting an old friend from the days of DOS and ancient versions of Windows. I had forgotten how much work this friend did for me. The more I thought about it, and the more I caught up with this friend, the more I realized there is a entirely new generation of system administrators that have never met him.   More »

Start Simple

Monday, December 11th, 2006 by Jeffery Hicks
Here's another quick suggestion, especially for VBScript, that will make script development and debugging a little easier and a lot less stressful. It may seem like common sense, but sometimes we all just need a reminder: Start Simple.   More »

More CLI and PowerShell

Friday, December 8th, 2006 by Jeffery Hicks
You don't have to choose between the traditional command line interface (CLI) and PowerShell. You can easily run a PowerShell command or even a PowerShell script directly from a command prompt. This means you can integrate some PowerShell functionality into your older batch files. It also means that you can create a scheduled task to execute a PowerShell script!   More »

Tip: CLI to PowerShell

Wednesday, December 6th, 2006 by Jeffery Hicks
If you have PowerShell installed (and if you don't what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that's not the only way.   More »

Command Line One-Liners

Tuesday, November 28th, 2006 by Jeffery Hicks
I recently did a TipSheet column listing some of my favorite quick, one line commands. Reader Wayne was kind enough to share with me his list of oft-used one-liners which he graciously offered to share.   More »