Showing archive results for 2008

Mar 21, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Both AND and OR Operators in a Single WMI Query?

ScriptingGuy1

Hey, Scripting Guy! I’ve looked through the entire Script Center but I can’t find an example of what I need to do: find all the .DOC files on drives C and D, but using a single WMI query. In other words, I want to write a WMI query similar to this: Where ( Drive = 'C:' or 'D:' ) and ( Extension = 'doc' ); unfortunately, though, I can’t figure out...

Scripting Guy!scripting techniquesVBScript
Mar 20, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I List the Members of a Domain Group That Belongs to the Local Administrators Group?

ScriptingGuy1

Hey, Scripting Guy! I manage over 300 servers in our environment. For each server I need to determine the members of the local Administrators account. It’s easy to get a list of local users and domain users that belong to the Admin account; it’s also easy to get a list of any domain groups that belong to the Administrators account. However, what ...

Scripting Guy!VBScriptActive Directory
Mar 19, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Retrieve the User Name and User Initials From Microsoft PowerPoint?

ScriptingGuy1

Hey, Scripting Guy! In PowerPoint user information is stored under the Tools menu. I would like to know if there is a way to extract this data by using a script.-- TV Hey, TV. You know, you might find this hard to believe, but the Scripting Guy who writes this column hardly ever loses anything; in fact, he’s actually pretty good about putting th...

Scripting Guy!VBScriptOffice
Mar 18, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Get a List of Active Directory Groups That Have Just 1 Member or Fewer?

ScriptingGuy1

Hey, Scripting Guy! We’re trying to straighten out our Active Directory, and in order to do so, I’ve been asked to come up with a list of all the groups that have just 1 member or fewer. How can I write a script that will return this information for me?-- DR Hey, DR. Before we answer your question we thought we’d relate an email...

Scripting Guy!VBScriptActive Directory
Mar 15, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Copy a File to a Removable Drive If I Don’t Know the Drive Letter of That Drive?

ScriptingGuy1

Hey, Scripting Guy! How can I determine if a computer has a removable drive attached to it and, if it does, copy a file to that drive? I have no way of knowing what the drive letter of that removable drive would be, assuming it even exists.-- SN Hey, SN. You know, when you live in Seattle you don’t really need a calendar in order to know what ti...

Scripting Guy!VBScriptstorage