Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Image not available

Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools [Kindle Edition]

Brian Knittel
5.0 out of 5 stars  See all reviews (1 customer review)

Print List Price: £30.99
Kindle Price: £24.94 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £6.05 (20%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.


Amazon Price New from Used from
Kindle Edition £24.94  
Paperback £26.25  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Product Description

Product Description


Windows 7 and Vista contain state-of-the-art tools for streamlining or automating virtually any system management task. If you’re a power user, administrator, or developer, these tools can help you eliminate repetitive work and manage your systems far more reliably and effectively.


Renowned Windows expert Brian Knittel brings together the practical knowledge you need to use all these tools, including VBScript and Windows Scripting Host (WSH), traditional batch files, the advanced PowerShell command console, and more. Using plenty of examples, Knittel explains how each tool works, and how to solve real-world problems with them.


You’ll master techniques ranging from accessing files to manipulating the Registry, sending automated emails to configuring new users. Knittel also provides concise, handy references to Windows 7/Vista’s command line, GUI scripting, and object-based management tools.


The only single-source guide to all leading methods of Windows scripting and automation, this book will help you get far more done–in far less time!

  •    Understand Windows Scripting Host (WSH) and the modern Windows scripting environment
  •    Script objects with VBScript, JScript, ActivePerl, and ActivePython
  •    Read and write files, including XML and HTML files
  •    Manipulate programs and shortcuts
  •    Manage network, printer, and fax connections
  •    Make the most of PowerShell under Windows 7 and Vista
  •    Monitor and administer Windows systems with Windows Management Interface (WMI)
  •    Use ADSI to control Active Directory and Microsoft Exchange, and manage users more efficiently
  •    Avoid mistakes that can compromise script security
  •    Use Windows’ debugging tools to test and troubleshoot scripts
  •    Develop batch files that take full advantage of the command line
  •    Send faxes and email messages from scripts with Windows Fax and Collaboration Data Objects (CDO)
  •    Deploy your scripts throughout your organization


Brian Knittel has been a software developer for more than 30 years. He has coauthored five
titles in Que’s Special Edition Using series, covering Microsoft Windows Vista, XP, and 2000.
He is also author of Windows XP Under the Hood, and coauthor of Upgrading and Repairing Windows (with Scott Mueller).




From the Back Cover

The addition of the mouse and the Graphical User Interface made the computer accessible to many more people than would have been possible otherwise. Still, "pointing and clicking" can be tedious when performing routine or repetitive tasks. Just as people learn to use menu shortcuts (the Alt key) to save time, savvy users and administrators learn to write batch files and scripts to avoid having to type the same commands over and over. Scripts save time, increase accuracy, and serve as documentation to boot. Windows 7 and Windows Vista come with scripting, batch file, and command line tools that can make a power user or administrator's life easier - if she or he knows what they are and how to use them. However, a general lack of information and awareness prevent their widespread use. Most current Windows users have no idea how powerful and effective these tools can be. The new scripting languages are a mystery to most Windows users. And, in Windows 7, most command line tools aren't even discussed in the Windows Help system. Microsoft has released a completely new scripting and command line environment called the Windows PowerShell, but few users are aware of its existence, let alone its power and potential.

Product details

  • Format: Kindle Edition
  • File Size: 17870 KB
  • Print Length: 844 pages
  • Simultaneous Device Usage: Up to 5 simultaneous devices, per publisher limits
  • Publisher: Que Publishing; 1 edition (1 Dec. 2010)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B004G60B44
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: #496,978 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Author

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

4 star
3 star
2 star
1 star
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
1 of 1 people found the following review helpful
5.0 out of 5 stars Excellent Book for Windows Scripting 9 Nov. 2012
Format:Paperback|Verified Purchase
This book provides a comprehensive coverage of Windows scripting, with a focus on Windows 7 and Vista as the title suggests. It covers VBScript in great detail and later on Windows PowerShell scripting language. In fact, I liked this book for its coverage of PowerShell, despite the fact that it covers this topic with less detail than it deserves, but very effective in clarifying the PowerShell language which new beginners almost certainly find very confusing (and many books fail to debunk that confusion!).

If you want a [nearly] complete book on Windows scripting, this is one book to have on your bookshelf. However, I am a bit surprised why Windows PowerShell didn't get more prominence in the coverage; it looks as if the book was written with some bias toward VBScript particularly when PowerShell is the future in Windows scripting. I am sure this point can be easily addressed with the next edition if there will be one.

If you are into Windows scripting, this book provides a good reference source with coverage of wide topics.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on (beta) 4.8 out of 5 stars  16 reviews
16 of 16 people found the following review helpful
4.0 out of 5 stars To The Point and Informative 10 Jan. 2011
By Little Commandlet - Published on
Format:Paperback|Verified Purchase
This book is well worth it to anyone serious about learning to tame the Windows beast. The jargon is kept to a minimum and the author gives excellent analogies to help the non-technical grasp the content. Full of useful techniques and lists all CMD commands, even the ones not listed in the command shell. The only reason it did not get 5 stars from me is because of the bulkiness of the book. Weighing in at 815 pgs. including index, I feel the author could have condensed the content, however, it was probably done for the sake of clarity. Great as a tutorial, reference, and brick after you're done!
11 of 11 people found the following review helpful
5.0 out of 5 stars Excelent guide to scripting in Vista and Win 7 7 Mar. 2011
By x - Published on
This book is useful if you are running XP, Vista, or Win 7. Although the book covers PowerShell, I bought it because it covered vbscript, batch files, and the numerous utilities and programs that ship with windows or are available for download from Microsoft or in the OS's resource kit. This is one of the most readable, well organized, and informative computer books that I have had the pleasure of reading. The tables in the back of the book are a trove of reference material such as lists of administrative tools, batch commands, GUI programs that can be invoked from a script, language references, lists of environmental variables, etc. There is also a useful index to the script and batch file examples. If you don't mind spending your life wading through cryptic and outdated tech notes on Microsoft's website you can find much of this information, but the author has done the leg work, brought it up to date, organized it, and put it in one easy to read volume.

If you have programming experience, by following the author's advice you will be writing useful scripts within the hour. If you are still writing DOS style batch files, buy this book and start writing vbscripts instead because you can do more and do it more easily. The author suggests using VBSEdit as a programming environment. The book is worth the price just for that suggestion.

If you are a kid who has a PC, get the book, learn to write scripts (vbscript comes with the windows OS)and have a blast.
13 of 16 people found the following review helpful
5.0 out of 5 stars First Class Job of Organization 8 May 2012
By John - Published on
Format:Paperback|Verified Purchase
This book is an incredible job by the author who is obviously talented at presenting the incredible amount of data necessary to do ALMOST anything with Windows at the script level. I rated it 5 stars because if you are trying to write Windows scripts, this is a good place to get started. The issue I have, however, is with the topic and Windows. Windows and most applications that run on it are really not set up for scripting, and that especially includes the obvious programs like OneNote that need it the most. Therefore don't expect an easy solution to a complex problem.

Windows suffers from an ill conceived and poorly implemented operating system architecture held together with a rats nest of bandaids and timeouts, and these are your true enemy. Scripting can't fix this problem, its built in. For example, you can print a PDF file to onenote but how do you tell when OneNote is ready for the next sequential print job so that the documents are stored in order in your notebook? You can't. All you can do is code time delays and hope that the machine always completes its task before your timeout sends it more data. If you really want to expand your control over windows, you can also use autohotkey which will inject keys, allow you to program time delays, and permit you to control the active window and sense when it changes.

The beauty of WSH is the architectural split between the various language interpreters you can use or install (like perl, python, etc) and the management of the scripts and additional functionality it exposes. This is nice, but most (if not all) of that functionality is already exposed in libraries and components for most scripting languages anyway. Its just nicer having it all in one place and documented, hopefully in a way that maintains consistency in the future as the OS evolves. (not likely though)

So if you think you want to develop some scripts for Windows, this is a resource you do need, but don't get involved in trying to make your Windows machine into a computer. Windows is designed as a single user, multiple application environment that relies on the fact that you can't press keys very fast. If you do, applications will bleed memory, crash, and sometimes even Windows will crash. The buffers, the handshaking, the gui response are simply not appropriate for high performance application utilization in Windows. If you need that, use Linux which is a multiuser, multiapplication system from the ground up. It suffers however from a dearth of applications like MS Office 2010, OneNote, Acrobat, etc. If you are a generic user, there are open source apps that will do most of what you need, and the good news is they are probably free. In Linux the applications must assume that they don't have the entire machine, they can't use timeouts, and they generally have very sophisticated command line interfaces, with bidirectional information flow to support scripting in a high performance multiuser environment.

So why did I buy this book, if I'm a linux guy? Well, so far most of you are still using Windows, and that means I need to be able to deliver solutions such as they are, to people who don't know what computing can really be like! To that end, this book is a well organized manual, reference tool, and its commentary is quite frank and honest. The author admits, for example, that programming a Windows application using keyboard insertions is a "nightmare". He's obviously done it, and those of us who have wake up screaming on occasion when we remember what it takes to make sense out of the response of a Windows application to real world heavy duty problems.

The bottom line is that WSH is not going to turn Windows into Linux. It's not going to make your applications respond in a predictable and timely manner or avoid the numerous shortcomings of Windows when it comes to handling large and repetitive tasks (like memory bleeding). It will give you a platform upon which you can develop some standardized, supportable, modern, scripts using your favorite language and up to date objects for your version of the operating system. So set your expectations accordingly and buy this book. Its far better than most books relating to Windows in terms of content delivery, and if you are still writing .bat scripts, you will benefit immensely. Things have changed dramatically since those days!
3 of 3 people found the following review helpful
5.0 out of 5 stars Well written and good links in Kindle version. 24 Sept. 2012
By lquievryn - Published on
Format:Kindle Edition|Verified Purchase
This large text book is easy to understand but not dumbed down. The author has great teaching skills. I'm listening to it on my Kindle using the text to speech while commuting, then reviewing the tables and trying the examples later. I'm glad there are plenty of live links in the Kindle edition -- most of the text books I get in Kindle format have little or no links, and are hard to navigate.
I plan to use the book first as a learning tool, then as a good reference for batch and script design.
2 of 2 people found the following review helpful
5.0 out of 5 stars Ahhh, knowledge is power 30 Mar. 2013
By DigiKiwam - Published on
Format:Kindle Edition|Verified Purchase
Excellent book, well laid out, easy to read and the author doesn't loose the reader in a web or IT Terminology.
I am well on my way to becoming a command line commander. Actually, it's a refresher for me as I've been doing it for years but just in the first few chapters I learned stuff I never even thought off. If you want to learn how to control your PC without the GUI - buy this book.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category