These are the sample scripts from the last printing of Managing Windows with VBScript and WMI, by Don Jones. Download ZIP file.
Tag: VBScript
ScriptingAnswers.com’s ScriptVault – Moved!
We’ve relocated the ScriptVault on ScriptingAnswers.com. Now, rather than a standalone application, it’s right within our forums, making it convenient to share your scripts, and to search for scripts others have shared. We still have a bit of reorganizing to move scripts into their proper categories, but you’ll find everything in the new "Script Sharing […]
Techmentor: The San Francisco IT Treat
I finished up my slide decks for the first Techmentor conference of the year in San Francisco (March 30 – April 3). If you’ve never been to a Techmentor conference you’re missing a great opportunity to hear and see your favorite IT speakers. Plus it’s a lot of fun to meet your peers, swap war stories and even some strategy and tips. Here’s what I have in store for you…
New Essentials!
We’ve revamped the "Essentials" page on ScriptingAnswers.com to give it better visibility, and make it easier for us to add new content in the future (which of course we plan to do). Bookmark http://www.scriptinganswers.com/essentials, and subscribe to the new Essentials RSS feed to stay on top of the latest. Our "Essentials" page features script templates […]
Running command-line tools
These examples show how to run command-line tools from within a VBScript, capturing the tool’s output. ‘ ‘ ScriptingAnswers.com Essentials – by Don Jones ‘ ‘ Run cmdline tools ‘ This shows how to launch a command-line ‘ tool and retrieve its output into a string variable ‘ to then do something with it. For […]
Checking for group membership
Here’s a script that demonstrates how to check for group membership from within VBScript. http://www.rlmueller.net/IsMember8.htm
ADUC GUI to ADSI Mappings
Although ADSI Scripting: TFM has a more complete cross-reference, this one’s online and free: It shows the basic dialog boxes for AD Users & Computers, and provides the attribute name underneath the various text boxes and check boxes. So if you know how to change something in the GUI, this gives you a clue of […]
Read Remote Registry Function
Hopefully you found my last entry valuable. But I always like to take things a step further, especially when it comes to scripting and automation. So I turned my last script into a function that returns the value of a specified registry key
Remote Registry Reading the VBScript Way
Last week I blogged about using REG.EXE in a batch file to read a registry key. The batch file I provided works, but the output is limited. You could probably parse it a bit more to get it in some other format. But I’d probably turn to VBScript and WMI if I wanted better output control or if I had more complicated needs.