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)
June, 2005
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
June, 2005
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
How Can I Add a Line to the Top of a Text File?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I add a line to the top of a text file? -- FT Hey, FT. You know, at one point in his career Sir Arthur Conan Doyle actually killed off Sherlock Holmes, figuring he’d written everything anyone could ever write about the master...
Hey, Scripting Guy! Blog
How Can I Change the Background Color of a Cell Depending on the Date?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a Microsoft Excel spreadsheet I periodically analyze using a script. How can I change the color of a cell to red if the date stored in that cell has passed? -- DM Hey, DM. We were going to start today’s column off with some...
Hey, Scripting Guy! Blog
How Can I List All the Attributes Used by the Computer Class in Active Directory?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I list all the attributes used by the Computer class in Active Directory? -- KP Hey, KP. Thanks for your question. In response, yes, it is true that the Kirkland Fire, the Colt League baseball team coached by one of the...
Hey, Scripting Guy! Blog
How Can I Retrieve a List of OUs that have a Specific Word in Their Name?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! We have a number of OUs in our domain that have the word Servers in the OU name. How can I retrieve a list of those OUs? -- AM Hey, AM. One of the Scripting Guys has a 15-year-old son who, whenever he hears his father tell a story...
Hey, Scripting Guy! Blog
How Can I Get the Actual Text of a List Box or Dropdown List Option?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In my HTA, how can I get the actual text of a list box or dropdown list option? -- MM Hey, MM. You might be familiar with an old Mac Davis song, a song that starts off like this: Oh Lord it's hard to be humble When you're perfect...
Hey, Scripting Guy! Blog
How Can I Determine the Date for the Friday in a Given Week?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Given a date, can a script tell me the date that the Friday for that week occurs? -- DLR Hey, DLR. Too bad you didn’t ask which dates Saturdays, Sundays, and holidays fall on; coincidentally enough, each of the Scripting Guys have...
Hey, Scripting Guy! Blog
How Can I Compare Two String Values Regardless of Letter Case?
Posted
over 7 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! I have a script that compares two email addresses and tells me whether or not they are the same. Sometimes the email addresses are the same, but the case is different: for example, one address might be example@abc.com and the other...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve the Value of an Active Directory Attribute that has a Hyphen in Its Name?
Posted
over 7 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! We have a custom application that adds some attributes to the Active Directory schema. These attributes have hyphens in their names, and I can’t figure out how to retrieve the value of those attributes; any time I try to connect...
Hey, Scripting Guy! Blog
How Can I Determine if a File Exists and, if It Does, Exit the Script?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I check to see if a particular file exists and, if it does, exit the script? -- TO Hey, TO. There are at least two ways to check for the existence of a file (that’s the real key here; exiting the script is easy). One of...
Hey, Scripting Guy! Blog
How Can I Show Users a Dialog Box That Only Lets Them Select Folders?
Posted
over 7 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! In previous columns you’ve shown us how to present users with a dialog box that enables them to select files. Is there any way to show them a dialog box that only lets users select folders? -- LP Hey, LP. You know, you’ve come to...
Hey, Scripting Guy! Blog
How Can I Delete Data from a Spreadsheet Yet Keep All the Formatting?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I delete data from a spreadsheet yet keep all the formatting? -- TB Hey, TB. From your email it sounds like you have a script that periodically replaces data in a spreadsheet with new, up-to-date values. The spreadsheet...
Hey, Scripting Guy! Blog
How Can I Determine Which Domain Controller Authenticated a User?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In my logon script how can I determine the name of the domain controller that authenticated the user? -- CK Hey, CK. You know, one of the unwritten rules for being a Scripting Guy is that you should never do anything hard more than...
Hey, Scripting Guy! Blog
How Can I Associate a Network Connection with an IP Address?
Posted
over 7 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I determine the local area connection that’s associated with a particular IP address? -- SH Hey, SH. Believe it or not, this is a fairly complicated procedure, and for two reasons. To begin with, we have to use two separate...
Hey, Scripting Guy! Blog
How Can I Change the Size of the Temporary Internet Files Folder?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I change the amount of disk space set aside for Internet Explorer’s temporary files folder? -- AD Hey, AD. The first draft of this column we were able to bang out in no time; after all, it consisted entirely of this: ...
Hey, Scripting Guy! Blog
How Can I Determine the Number of Items Generated by the Split Function?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I know I can use the Split function to split a line into individual items. But how can I tell how many “splits” I ended up with; that is, how many individual items did I generate from a single line? -- SA Hey, SA. For those of you...
Hey, Scripting Guy! Blog
How Can I Clear a Text Box in an HTA?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I clear a text box in an HTA? -- CB Hey, CB. You know, it’s been awhile since we’ve answered a question about HTAs (HTML Applications). And we could probably get away with that except for the fact that a month or so ago...
Hey, Scripting Guy! Blog
How Can I Hide a Specific Toolbar in Microsoft Word?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I hide a specific toolbar in Microsoft Word? -- AG Hey, AG. Now this question brings back memories. When our editor joined the team one of her first actions was to make us redo a whole bunch of screenshots we had made for...
Hey, Scripting Guy! Blog
How Can I Tally Items in a Text File?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tally items in a text file? -- JA Hey, JA. If we understand you correctly you have a text file that consists of a number of lines, each line representing a particular item. Just to keep things simple, let’s say your text...
Hey, Scripting Guy! Blog
How Can I List All the User Profiles on a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I list all the user profiles on a computer? -- GN Hey, GN. You want to know a secret? We hate questions about user profiles. It’s not that we have anything against user profiles. The problem is that user profiles represent...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I List All the User Profiles on a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! How can I list all the user profiles on a computer? -- GN Hey, GN. You want to know a secret? We hate questions about user profiles. It’s not that we have anything against user profiles. The problem is that user profiles represent...
Hey, Scripting Guy! Blog
How Can I Display More Than 1,023 Characters in a Custom Message Box?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I need to create a custom alert box that has over 1,000 characters in it. The message box used by Wscript.Echo can hold all the characters, but I can’t change the message box title. I can change the title of a message box used by the...
Hey, Scripting Guy! Blog
How Can I Retrieve the Path to the %windir% Folder on a Computer?
Posted
over 7 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I retrieve the path to the %windir% folder on a computer? -- DS Hey, DS. Interesting that you should ask this question. This same question happened to be asked on an internal Microsoft mailing list just the other day, and...
Page 1 of 1 (22 items)