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, 2007
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
June, 2007
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
How Can I Delete Unread Emails That Are More Than 6 Months Old?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! We have a lot of users who let unread email messages pile up in their Outlook Inboxes; after awhile, that causes their Inboxes to fill up. How can I write a script users could run that would delete any unread messages that are more...
Hey, Scripting Guy! Blog
How Can I Prompt for a Computer Name and Then Delete That Computer Account From Active Directory?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I write a script that prompts the user for a computer name, then goes out and deletes that computer account from Active Directory? -- PH Hey, PH. As a general rule, technical writers never experience writer’s block. Why...
Hey, Scripting Guy! Blog
How Can I Remap Network Drives So They Use an IP Address Rather Than a Computer Name?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I remap network drives so they point to the IP address of the remote computer rather than the computer name? -- YM Hey, YM. You know, yesterday we started off this column by saying, “Never mind,” referring to the fact that...
Hey, Scripting Guy! Blog
How Can I Search For Red Text in a Microsoft Word Document?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a huge document that features occasional lines printed in red. How can I extract just the lines that are printed in red? -- GH Hey, GH. To begin with, the Scripting Guy who writes this column would like to say just one thing...
Hey, Scripting Guy! Blog
How Can I Create a Folder for Each User in My Domain?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I create a folder for each user in my domain? I’d like the folder name to consist of the user’s first initial and their last name (for example, KMyer). -- GN Hey, GN. You know, this has been an interesting week for the Scripting...
Hey, Scripting Guy! Blog
How Can I Delete Specified Rows in an Excel Spreadsheet?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I delete a row in an Excel spreadsheet if there is a specific value in column A of that row? -- OI Hey, OI. Before we get rolling on today’s column, have we mentioned that time is beginning to run out on the Scripting Guys...
Hey, Scripting Guy! Blog
How Can I Open a Window to a UNC Location?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I open a window to a UNC location? You've given many examples that involve opening a web page. I have been unable to get a similar result trying to get a script to open \\server\share. -- CY Hey, CY. You know, during the...
Hey, Scripting Guy! Blog
How Can I Color Every Other Row in an Excel Spreadsheet?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! When I create a new Excel spreadsheet, I’d like to color every other row in that spreadsheet. How can I do that? -- TM Hey, TM. We know a lot of you have been wondering, “Gee, what’s the matter with the Scripting Guy who writes...
Hey, Scripting Guy! Blog
How Can I Insert Commas at Specified Locations in Each Line in a Text File?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I insert commas at specified locations in each line in a text file? -- MM Hey, MM. Seeing as how Father’s Day has just come and gone we couldn’t talk about inserting commas into text files without first relating a heartwarming...
Hey, Scripting Guy! Blog
How Can I Remove a Specific Set of Users From the Local Administrators Group?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I delete all the users whose name starts with GER/ad_ from the local Administrators group on a computer? -- ID Hey, ID. It’s a Friday as the Scripting Guy who writes this column writes this column. Usually Fridays are a...
Hey, Scripting Guy! Blog
How Can I Randomly Select an Email From an Outlook Mail Folder?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I randomly select an email from an Outlook mail folder? -- TV Hey, TV. You know, for a brief moment last night the Scripting Guy who writes this column thought he had achieved every father’s dream. The Scripting Dad and...
Hey, Scripting Guy! Blog
How Can I Change the Default File Save Format in Microsoft Word?
Posted
over 5 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! I’m running Word 2007, but most of my colleagues are still running Word 2003. Is there a way I can use a script to change the default file type when saving documents in Word? I’d prefer that, by default, documents are saved in Word...
Hey, Scripting Guy! Blog
How Can I Rename a File Every Day, Using the Current Date as Part of the File Name?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a file that has the name BackupFile-06122007.txt, where the 06122007 represents yesterday’s date (June 12, 2007). Each morning I would like to run a script that changes the name of that file so that it uses today’s date: BackupFile...
Hey, Scripting Guy! Blog
How Can I Put the File Name in the Footer of a Microsoft Word Document?
Posted
over 5 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! I’ve seen Word documents where the file name appears in the footer. Except that this file name is dynamic: if the name of the document changes then the footer changes, too. How can I add that kind of a footer using a script? -- ZK...
Hey, Scripting Guy! Blog
How Can I Clear the Contents of a Text File?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I clear the contents of a text file? -- JJ Hey, JJ. Well, today is Monday, June 11 th , and the Scripting Guys are finally back from a week in Orlando . After all that time spent lounging around in luxury hotels, eating...
Hey, Scripting Guy! Blog
How Can I Get a List of All the PDF Files in a Folder and Its Subfolders?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I get a list of all the .PDF files (only the file names; I don’t want the file path or file extension) in a folder and its subfolders, and then put that list into a text file? -- PS Hey, PS. You know, PS, this is actually...
Hey, Scripting Guy! Blog
How Can I Create a Shortcut For an Executable File That Uses Parameters?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I create a shortcut where the target path is an executable file that uses parameters (for example, something.exe -t –s )? -- MC Hey, MC. A week or so ago we mentioned that we were going to make some changes to Hey, Scripting...
Hey, Scripting Guy! Blog
How Can I Add a Page X of Y Footer to a Microsoft Word Document?
Posted
over 5 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! I saw your article on adding page numbers to the footer of a Word document . However, I need my page numbers to be in the format "Page X of Y," where X is the current page number and Y is the total number of pages. How can I do that...
Hey, Scripting Guy! Blog
How Can I Append a Value to a Specified Field For Each Record in a Database?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I add the letter s to the end of a specified field for each record in an Access database? -- A Hey, A. It’s day 2 of TechEd 2007 and the Scripting Guys are still sitting here in the CMP Media booth (that’s booth No. 1301...
Hey, Scripting Guy! Blog
How Can I Copy Selected Columns From a CSV File to an Excel File?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I copy selected columns from a CSV file to an Excel file? -- MdP Hey, MdP. One thing that people always worry about (and rightly so) is that one of these days the Scripting Guys will do something that tears a hole in the...
Hey, Scripting Guy! Blog
How Can I Change the File Extension for All the Files in a Folder?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! We backed up a whole bunch of files in a folder; when these files were backed up the word "old" was inserted as part of the file extension (e.g., Filename.exe became Filename. old exe). How can I restore these files to their original...
Page 1 of 1 (21 items)