Sign In
TechNet Blogs
Technet Blog Images
More ...
Tweet tweet!
Translate this page
Powered by
Microsoft® Translator
Related Links
Blog Home
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Common Tasks
Blog Home
RSS for comments
RSS for posts
Atom
OK
Email Blog Author
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
2009 Summer Scripting Games (42)
2010 Scripting Games (115)
2011 Scripting Games (132)
2012 Scripting Games (125)
Active Directory (216)
ActiveX Data Objects (ADO) (30)
Advanced (70)
arrays hash tables and dictionary objects (29)
Beginner (96)
CSV and other delimited files (35)
databases (57)
dates and times (56)
desktop management (111)
displaying output (32)
event logs (45)
events and monitoring (37)
Excel spreadsheet (52)
Excel.Application (31)
files (140)
folders (74)
general management tasks (55)
getting started (299)
groups (39)
guest blogger (264)
Internet Explorer (31)
leaderboard (57)
local accounts and Windows NT 4.0 accounts (33)
Logs and monitoring (48)
Microsoft Excel (114)
Microsoft Outlook (49)
Microsoft Word (95)
multimedia (30)
Office (286)
operating system (229)
other Directory Services (34)
performance (32)
printing (31)
prize winners (32)
processes (48)
Quick-Hits Friday (88)
registry (82)
regular expressions (39)
running (86)
Scripting Guy! (2162)
scripting techniques (990)
Scripting Wife (85)
Sean Kearney (50)
searching Active Directory (63)
security (44)
servers (31)
services (31)
sponsors (38)
storage (211)
string manipulation (48)
text files (147)
troubleshooting (39)
user accounts (89)
using the Internet (38)
VBScript (1049)
Web pages and HTAs (71)
Weekend Scripter (186)
Windows PowerShell (1300)
Windows PowerShell ISE (33)
WMI (159)
writing (45)
Archives
Archives
May 2012
(29)
April 2012
(97)
March 2012
(44)
February 2012
(31)
January 2012
(31)
December 2011
(31)
November 2011
(30)
October 2011
(31)
September 2011
(30)
August 2011
(31)
July 2011
(31)
June 2011
(30)
May 2011
(31)
April 2011
(97)
March 2011
(41)
February 2011
(28)
January 2011
(31)
December 2010
(31)
November 2010
(30)
October 2010
(31)
September 2010
(30)
August 2010
(33)
July 2010
(31)
June 2010
(30)
May 2010
(67)
April 2010
(65)
March 2010
(34)
February 2010
(29)
January 2010
(23)
December 2009
(23)
November 2009
(22)
October 2009
(23)
September 2009
(22)
August 2009
(25)
July 2009
(24)
June 2009
(38)
May 2009
(22)
April 2009
(22)
March 2009
(22)
February 2009
(20)
January 2009
(22)
December 2008
(8)
November 2008
(17)
October 2008
(9)
September 2008
(8)
August 2008
(6)
July 2008
(5)
June 2008
(21)
May 2008
(21)
April 2008
(22)
March 2008
(21)
February 2008
(21)
January 2008
(22)
December 2007
(10)
November 2007
(20)
October 2007
(23)
September 2007
(19)
August 2007
(23)
July 2007
(21)
June 2007
(21)
May 2007
(22)
April 2007
(21)
March 2007
(22)
February 2007
(21)
January 2007
(21)
December 2006
(11)
November 2006
(20)
October 2006
(22)
September 2006
(20)
August 2006
(23)
July 2006
(20)
June 2006
(22)
May 2006
(22)
April 2006
(20)
March 2006
(23)
February 2006
(20)
January 2006
(21)
December 2005
(16)
November 2005
(20)
October 2005
(21)
September 2005
(21)
August 2005
(23)
July 2005
(20)
June 2005
(22)
May 2005
(21)
April 2005
(21)
March 2005
(22)
February 2005
(20)
January 2005
(21)
December 2004
(16)
November 2004
(20)
October 2004
(21)
September 2004
(21)
August 2004
(22)
September, 2004
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
September, 2004
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
How Can I Compare the Memberships of Two Groups?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m looking for a script that can get the memberships of two different groups, compare them, and then write out the differences. Can you help? -- LS Hey, LS. When we received your question a week or so ago we thought, “That’s a...
Hey, Scripting Guy! Blog
How Can I Tell Which Service Packs Have Been Installed on a Computer?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell which service packs have been installed on my computers? -- FR Hey, FR. That’s a very good question; as you know better than we do, in this day and age it’s really important to make sure all your computers have the...
Hey, Scripting Guy! Blog
How Can I Get a List of the Devices That Aren't Working?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In Device Manager, any time a device isn’t working that device is marked with a yellow exclamation mark. How can I use a script to get a list of the devices that aren’t working? -- OL Hey, OL. Sometimes in baseball a batter absolutely...
Hey, Scripting Guy! Blog
How Can I Terminate a Process with a Specific PID?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! If I have the PID, is there a way to kill a process using a script? -- JV Hey, JV. You bet there is. For those of you who aren’t familiar with the acronym, PID is short for Process Identifier, a unique ID number assigned to a process...
Hey, Scripting Guy! Blog
How Can I Get a List of Exchange Servers Assigned to My Users?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How do I get a list of the Exchange servers (msExchHomeServerName) assigned to the users in an OU? -- BG Hey, BG. As you probably already figured out, you have two issues: you need to get a list of all the users in an OU, and then...
Hey, Scripting Guy! Blog
How Can I Display Multiple Lines of Output in a Web Page?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How do I get multiple lines of output in a Web page using the Document.Body.InnerHTML property? I can only get one line of output on my page. -- CM Hey, CM. Sounds like you’re creating an instance of Internet Explorer and trying...
Hey, Scripting Guy! Blog
How Can I Manage Scheduled Tasks Using Scripts?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! Is there an easy way to manage scheduled tasks using scripts? -- RC Hey, RC. You just had to ask that question, didn’t you? To be honest, this is not one of scripting’s strong points, and you might be more confused after hearing...
Hey, Scripting Guy! Blog
How Can I Determine if a Computer is a Laptop or a Desktop Machine?
Posted
over 8 years ago
by
ScriptingGuy1
9
Comments
Hey, Scripting Guy! Is there any way to use WMI to determine whether a computer is a laptop or a desktop machine? -- CB Hey, CB. You bet there is, although if you didn’t know that we have no idea how you’d figure it out on your own. It turns out there...
Hey, Scripting Guy! Blog
How Can I Tell if a Computer Has a DVD Drive Installed?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell if a computer has a DVD drive installed? -- GC Hey, GC. No doubt you’re hoping we’ll say something like, “Why, you just use the Win32_DVD class, of course.” Unfortunately, though, we can’t say that; that’s because...
Hey, Scripting Guy! Blog
How Do I Bind to a User Account in a Sub-OU?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How do I bind to a user account when the user is in a sub-OU? Code like this doesn’t work: LDAP://CN=Ken Meyer, OU=NA\Human Resources, DC=fabrikam, dc=com. -- RD Hey, RD. The past few days we’ve done some lengthy answers to questions...
Hey, Scripting Guy! Blog
How Do I Get Rid of Extraneous Spaces in a String?
Posted
over 8 years ago
by
ScriptingGuy1
2
Comments
I know that I can use the Split command to separate a sentence like this - VBScript is fun! - into an array of individual words. However, what happens if I have a sentence like this: VBScript is fun! I can’t use a blank space as the delimiter because...
Hey, Scripting Guy! Blog
How Can I Use Both Command-line Arguments and a Default Value?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’d like to have a script that accepts computer names as command-line arguments and then runs against each of those computers. However, if you don’t enter any command-line arguments, I’d like it to default to running against the local...
Hey, Scripting Guy! Blog
Why Doesn't My Ping Script Run on Windows 2000 Computers?
Posted
over 8 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a script that pings a computer before it tries to connect to it. The script works fine on Windows XP, but doesn’t work at all on my Windows 2000 computers. Do you have any idea why? -- AK Hey, AK. As a matter of fact, we...
Hey, Scripting Guy! Blog
Why Doesn't My LIKE Query Work on Windows 2000?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m trying to use a LIKE query in my WMI scripts. The query works fine on Windows XP computers, but I can’t get it work on Windows 2000 computers. Do you know what I’m doing wrong? -- GS Hey, GS. Actually you’re not doing anything...
Hey, Scripting Guy! Blog
How Can I Tell Which Account a Service is Running Under?
Posted
over 8 years ago
by
ScriptingGuy1
2
Comments
We have services that run under a particular user account. Each time we change the password for that user account, we need to change the password for any services that run under that account as well. But how can we tell which account a service is running...
Hey, Scripting Guy! Blog
How Can I Read in IP Addresses and Use Them in a Script?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a text file that contains a bunch of IP addresses. I’d like to be able to read these addresses from a script, and then use them to connect to those computers. Is that possible? -- RL Hey, RL. You bet you can do this, and...
Hey, Scripting Guy! Blog
How Can I Determine the Version Number of an Executable File?
Posted
over 8 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I determine the version number of an executable file? -- TW Hey, TW. Well, that depends. If the file is located on the local computer, the easiest way is to use the FileSystemObject. Have a burning desire to know which version...
Hey, Scripting Guy! Blog
How Can I Tell if a Server has Rebooted?
Posted
over 8 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! Is there any way to tell whether or not a server has rebooted? -- MvdM Hey, MvdM. We’re assuming that you’re performing a task and, at the end of the task, the computer is supposed to reboot. Needless to say, you want to know, ...
Hey, Scripting Guy! Blog
How Can I Be Notified Any Time a Service Goes Down?
Posted
over 8 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I be notified any time a service goes down? -- RN Hey, RN. As usual, there are a couple different ways you can do this, but perhaps the simplest approach is to create a script that monitors WMI events. We don’t have time...
Hey, Scripting Guy! Blog
How Can I Enumerate All the Objects in an Active Directory OU?
Posted
over 8 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I enumerate all the objects in an Active Directory OU? -- RB Hey, RB. By the way, thanks: it’s always nice to get an easy question every once in awhile! Enumerating all the objects in an OU is almost embarrassingly-simple...
Hey, Scripting Guy! Blog
How Can I Create a Folder on a Remote Computer?
Posted
over 8 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! Can I create a folder on a remote computer using a script? -- AN Hey, AN. Life is full of mysteries. To name one, what possessed somebody to think that the world was clamoring for Clamato juice, an unholy concoction combining tomato...
Page 1 of 1 (21 items)