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)
April, 2005
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
April, 2005
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
How Can I Change the User and Computer Account Description Attributes Each Time a User Logs On?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I change the user and computer account Description attributes each time a user logs on? I’d like the Description to indicate who logged on, and when. -- GG Hey, GG. This is actually a pretty good idea. One question we get...
Hey, Scripting Guy! Blog
How Can I Purge All the Print Jobs on a Windows 2000 Print Server?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server? -- KC Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the...
Hey, Scripting Guy! Blog
How Can I Tell if an Excel Workbook is Open and, If It Isn’t, Open It?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell if a specific Excel workbook is open and, if it isn’t, open it? -- RK Hey, RK. Every now and then we see a question and think, “We should answer this one; it’s so easy it won’t take more than a few minutes to finish...
Hey, Scripting Guy! Blog
How Can I Add All the Users from an Existing Active Directory Group to a New Group?
Posted
over 7 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! How can I add all the users from an existing Active Directory group to a new group? -- TG Hey, TG. So you have a group (we’ll call it Group A) and you want to create an exact replica of that group (we’ll call it Group B). If we...
Hey, Scripting Guy! Blog
How Can I Configure a Computer to Use a Dynamically-assigned DNS Server?
Posted
over 7 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I configure a computer to use a dynamically-assigned DNS Server? -- JB Hey, JB. Ah, this question brings back memories. A couple years ago the Scripting Guys were faced with this same problem, and discovered the answer entirely...
Hey, Scripting Guy! Blog
How Can I Add Two Blank Lines Between Each Line in a Text File?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Hey, Scripting Guy! How can I add two blank lines between each line in a text file? -- LW Hey, LW. You know, when we wrote the Microsoft Windows 2000 Scripting Guide we included 4 or 5 examples of how you might work with text files...
Hey, Scripting Guy! Blog
Why Does My Performance Monitoring Script Keep Returning the Same Incorrect Values?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I’m using a script to monitor process performance, but every time I run the script the percent processor time for all the processes comes out as 0. What am I doing wrong? -- JL Hey, JL. We’ve simplified your script a bit to better...
Hey, Scripting Guy! Blog
How Can I Pass Command-Line Variables to an HTA When It Starts?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I pass command-line variables to an HTA when it starts? -- DM Hey, DM. Ok, we admit it: you almost had us on this one. (Not that being able to stump the Scripting Guys is particularly hard, mind you.) We had no idea whether...
Hey, Scripting Guy! Blog
How Can I Tell Whether a Group Member is a User, a Computer, or Another Group?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell whether the member of a group is a user, a computer, or another group? -- ON Hey, ON. Interesting question and - to tell you the truth - one we’d never really thought about. It’s easy enough to list all the members...
Hey, Scripting Guy! Blog
How Can I Determine the Version Number of a File?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I extract version information for a DLL or other type of file? -- DM Hey, DM. There at least two ways we know of to retrieve the version information for a file: one designed for working on the local computer and one that...
Hey, Scripting Guy! Blog
How Can I Search a Text File for 9-Digit Numbers?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I search for user names in a text file? In my case, the user names all consist of 9 digits, although they can be any 9 digits. -- GG Hey, GG. Interesting question. You want to search for 9-digit numbers (like 123456789)...
Hey, Scripting Guy! Blog
How Can I Display a Multi-Valued Attribute Returned from an Active Directory Search?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I display a multi-valued attribute that I get back when using ADO to search Active Directory? -- ES Hey, ES. For the most part Active Directory is a script writer’s paradise; with very few exceptions anything you can do...
Hey, Scripting Guy! Blog
How Can I Eliminate Duplicate Names in a Text File?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a text file that contains a bunch of names. How can I read through that text file and eliminate all the duplicate names? -- MW Hey, MW. We’re assuming you have a text file that looks something like this: Ken Myer Dean Tsaltas...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Bind to a User Account Using Something Other Than the CN Attribute?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Can I bind to an Active Directory account using the user’s mailNickname or their sAMAccoutName, something other than the CN? -- MB Hey, MB. When you bind to an account in Active Directory, you need to pass GetObject the...
Hey, Scripting Guy! Blog
How Can I Insert a Column into a Spreadsheet?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I insert a column into an Excel spreadsheet? -- HE Hey, HE. Let’s assume you have a spreadsheet that looks something like this: And, yes, it is a very nice little spreadsheet, except for one problem. As you can see, we...
Hey, Scripting Guy! Blog
How Can I Get a List of All the .PST Files on a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I get a list of all the .pst files on a computer - along with their size and their location - and then save that information to a comma-separated values file? -- DC Hey, DC. If you hang around baseball fields long enough...
Hey, Scripting Guy! Blog
How Can I Print a Test Page to a Printer?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I print a test page to a printer? -- RR Hey, RR. As long as you’re running Windows XP this is an easy one; that’s because the revised Win32_Printer class introduced in Windows XP includes a method called PrintTestPage ....
Hey, Scripting Guy! Blog
How Can I Convert a Comma-Separated Values File to a Tab-Separated Values File?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I convert a comma-separated values file to a tab-separated values file? -- RV Hey, RV. Depending on the nature of your comma-separated values (CSV) file this is either very easy or a little bit tricky. Let’s follow the Scripting...
Hey, Scripting Guy! Blog
How Can I Delete a Folder and All Its Subfolders?
Posted
over 7 years ago
by
ScriptingGuy1
7
Comments
Hey Scripting Guy! How can I delete a folder and all its subfolders? -- FB Hey, FB. You know, a lot of people think the Scripting Guys know everything there is to know about scripting. Let’s put it this way: we wish. In fact, it’s only when we begin...
Hey, Scripting Guy! Blog
How Can I Monitor for Different Types of Events With Just One Script?
Posted
over 7 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! Is there any way to monitor a folder for file creations and deletions, all with just one script? -- HA Hey, HA. By the way, thanks for the question: you temporarily saved us from answering a different question, one that was proving...
Hey, Scripting Guy! Blog
How Can I Convert 1,000 .RTF Files to Word Documents?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a folder of about 1,000 .RTF files. I need to convert all of these to Word documents (.DOC files). Can you help me with this? -- LS Hey, LS. Sure, we can help you. We’re not going to, but we could if we wanted to. No,...
Page 1 of 1 (21 items)