Advanced Search
Start Your Free Trial

Overview

Top Sellers in this Category

Windows® Presentation Foundation Unleashed

Windows® Presentation Foundation Unleashed
by Adam Nathan; Daniel Lehenbauer - Lead Developer Responsible for WPF 3D

Essential Windows Communication Foundation: For .NET Framework 3.5

Essential Windows Communication Foundation: For .NET Framework 3.5
by Steve Resnick; Richard Crane; Chris Bowen

Advanced Windows Debugging

Advanced Windows Debugging
by Mario Hewardt; Daniel Pravat

If you’re a Windows administrator, scripting expertise can liberate you from boring, repetitive work–so you can take on the sophisticated, high-value projects you really want. Top scripting guru Don Jones has written the definitive administrator’s guide to getting results with Microsoft’s key scripting technologies: VBScript, WMI, and ADSI.

Jones draws on his unsurpassed experience training Windows administrators in conferences, classes, and from his enormously popular site, ScriptingAnswers.com.

You’ll learn how to use VBScript, WMI, and ADSI to gain administrative control over nearly every aspect of every recent Windows server or client, including Windows Server 2003, Vista, XP, 2000, and NT. As you gain experience, Jones introduces more advanced techniques, ranging from modular scripting and script encryption to integrating VBScript with HTML code.

Jones concludes with a full section of ready-to-run, real-world examples–from logon/logoff scripts to automated domain and network administration, from querying WMI to creating Active Directory groups. Every script is explained line-by-line, with challenging techniques described in even greater detail.

Detailed information on how to…

  • Decide what you can script: a framework for getting started fast

  • Understand how scripts are designed, assembled, and run

  • Master VBScript from start to finish: functions, I/O, data manipulation, program flow, and much more

  • Use scripting objects for tasks ranging from retrieving network information to mapping drives

  • Utilize FileSystemObject to manipulate the Windows filesystem

  • Write ADSI scripts to manipulate any directory service your company uses, from Active Directory to Novell NDS

  • Modify domain information, users, groups, and policies

  • Query WMI information–from basic to advanced

  • Plan for errors, and test and debug your scripts

  • Build your own “resource kit” of reusable script components

ON THE WEB:

Download all examples and source code presented in this book from ScriptingAnswers.com, where you’ll also be able to post follow-up questions directly to the author in a moderated, active community.

Introduction 1

Part I: Introduction to Windows Administrative Scripting 11

Chapter 1: Scripting Concepts and Terminology 13

Chapter 2: Running Scripts 21

Chapter 3: The Components of a Script 39

Chapter 4: Designing a Script 55

Part II: VBScript Tutorial 73

Chapter 5: Functions, Objects, Variables, and More 75

Chapter 6: Input and Output 101

Chapter 7: Manipulating Numbers 115

Chapter 8: Manipulating Strings 129

Chapter 9: Manipulating Other Types of Data 145

Chapter 10: Controlling the Flow of Execution 155

Chapter 11: Built-In Scripting Objects 173

Chapter 12: Working with the File System 193

Chapter 13: Putting It All Together: Creating Your First Script from Scratch 219

Part III: Windows Management Instrumentation and Active Directory Services Interface 245

Chapter 14: Working with ADSI Providers 247

Chapter 15: Manipulating Domains 257

Chapter 16: Manipulating Users and Groups 271

Chapter 17: Understanding WMI 283

Chapter 18: Querying Basic WMI Information 299

Chapter 19: Querying Complex WMI Information 317

Chapter 20: Putting It All Together: Your First WMI/ADSI Script 335

Chapter 21: Testing and Debugging WMI and ADSI Queries 357

Part IV: Advanced Scripting Techniques 371

Chapter 22: Modular Script Programming 373

Chapter 23: Scripts Packaging and Protection 389

Chapter 24: Scripting Security 399

Chapter 25: Introduction to HTML Applications 409

Chapter 26: Debugging Tips, Tools, and Techniques 421

Part V: Ready-to-Run Examples 437

Chapter 27: Logon and Logoff Scripts 439

Chapter 28: Windows and Domain Administration Scripts 455

Chapter 29: Network Administration Scripts 481

Chapter 30: WMI and ADSI Scripts 497

Appendix 509

Index 523

.

Amazon.com® Reader Reviews (Ranked by Helpfulness)

Average Amazon.com® Rating: 4.0 out of 5 rating Based on 5 Ratings

"Congratulations on purchasing this book..now download all the VBScript documentation to learn.." - 2007-12-25
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Hey all,

I was a noob in all of this scripting stuff when I bought this book. Frankly it was not a bad purchase but it did leave me kind of disappointed. The first few chapters are a waste of time because there just like a huge sales ad for the author's company that sells a VBScript IDE, added to that you never get that feeling that he's fully convinced of what he is telling you, i.e. "You should learn VBScript but it doesn't matter because we have the impending doom looming over called Windows Powershell".

Last but not least is the fact related to the title of my review, basically he stresses the point that to learn VBScript you should get the online documentation for it......then what the hell did I buy this book for? If I wanted to learn structured programming I would've bought a C++ book that will do a better job.

All in all, the book has it's good points..I just can't remember them right now 'cause I'm hungry and it's Christmas Day. It does give you the basic knowledge what scripts can do, although if you been a windows admin for a while then this will only confirm to you that there are other ways of doing stuff....and that you need the VBScript online documentation (which by the way was hard to find on Microsoft's website) to do them.

This is the only scripting book I've so sadly I can't give you an alternative to it or compare it against any but if you really are into self-learning I think that a little organization, time and all the documentation available at MS's website might do.

If you have the bucks to spare buy it, if you have time on your hands don't buy and turn over to the Net to learn.

Practical with examples - 2007-12-18
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I found this book to be very helpful and practical with the examples given in the book. The examples have come in useful for me for basic systems administration in my Windows Server 2003 network with Active Directory. The author breaks down the example codes line by line and explains what is going on, which I found to be very helpful.

one thing I did not like was that some times the author purposely put mistakes in the code without initially telling you. Then towards the end of the section, he will ask you why the code did not work and will tell you what went wrong and why. He doesn't do this all the time, but a few times. It made me second guess myself and thought that the publisher had bad typos in the code, something familiarly seen in a lot of programming books. Good learning experience, I suppose.

Even if you are a beginner programmer wanting to learn VBscripting, I think you would be able to get the gist of VBscript by copying the examples in the book and tweaking them for your needs. This is my first VBscript book and it's definitely a keeper for me. Highly recommended!

Mediocre at Best - 2009-04-07
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
If you have any scripting experience at all, you're better off with a different book. This one is definitely geared more toward the stereotypical minimally competent Windows domain administrator who may or may not be a paper MCSE and who can't be bothered to learn anything outside the specific scope of his job.

The book claims to aim at the VBScript neophyte, but it would help to have at least seen or, better, copy-pasted and modified some scripts before diving into this book. The author constantly uses concepts and language constructs from upcoming chapters before they're covered. This practice is frustrating, but may be justified in the very beginning of the book, while he's covering the VBScript language itself - it's difficult to put together a non-trivial program without using a few different programming concepts. However, he even does this after he's finished with the VBScript introduction; he uses ADSI stuff when he's trying to explain WSH, for example. It can be a little daunting trying to learn one concept when four new ones are being thrown at you.

I also felt, as I see in other reviews here, that the author spends way too much energy trying to sell the reader on his company's scripting IDE. Seriously, I bought a scripting book, not an advertisement. To top it off, it doesn't even sound like his program is any better than Notepad++ (which is free and GPL).

In addition, the author inadvertently helped me to choose JScript over VBScript, even though JScript is not covered in the book. It's obvious from the text and the information I find online that VBScript is a horribly crippled language, and I have a decent amount of experience with Javascript anyway.

In all, I wouldn't say that this is a BAD book, as I did learn enough about WSH, WMI, and ADSI to be able to search for what I really need on Microsoft's reference site, but I don't think I'll be buying another book from this author or Sams Publishing.

Just what the doctor ordered - 2008-06-24
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I had originally studied the Microsoft Press book "Microsoft Windows Scripting Self-Paced Learning Guide", but still needed more.

VBScript, WMI and ADSI Unleashed is the book that I wish I had read first. It is a good choice for a system admin who wants to start scripting administrative tasks.

Having never scripted before, I had many questions. This book started from the beginning, what editor should I use for programming, and took me all the way to my first scripted program....to search AD for all Servers at or below a specified OU, remotely attach to each server, determine if it is a physical or virtual computer, run a hardware configuration utility as appropriate, reconfigure the hardware as appropriate based on the utilities output and report back to me the results. I went from nothing to decent in about two weeks.

This is a good choice for this type of book.

How refreshing! - 2007-08-21
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
What a pleasure! This is a book written for technical administrators, by a technical administrator with a knack for writing. Don Jones demonstrates a talent for explaining the intricacies of monitoring and administering a Windows enterprise using WMI & ADSI scripting (et al) in a perfectly comprehensible manner without coming across annoyingly simplistic or condescendingly academic. Computer book writers take note!

Browse Similar Topics

Top Level Categories:
Programming

Sub-Categories:
Programming > Windows

Some information on this page was provided using data from Amazon.com®. View at Amazon >


About Safari Books Online • Terms of Service • Privacy Policy • Contact Us • Corporate Licenses • Help • Accessibility | See us on FacebookSee us on Linked InSee us on TwitterRSS

Copyright 2009 Safari Books Online. All rights reserved.