Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
October, 2007
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
October, 2007
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Partner & Customer Solutions
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud OS Blogs
Brad Anderson - In the Cloud
Building Clouds
Server & Cloud
Datacenter Management
The System Center Team Blog
System Center Virtual Machine Manager
System Center Service Manager
System Center Operations Manager
System Center Data Protection Manager
System Center Orchestrator
Partner & Customer Solutions
Client Management
System Center Configuration Manager
System Center Service Manager
MDOP
Malware Protection Center
Windows Intune
SUS
Partner and Customer Solutions
Virtualization, VDI & Remote Desktop
Virtualization Team Blog
Ben Armstrong’s Virtualization Blog
Jose Barreto Blog on Hyper-V
Partner & Customer Solutions
Remote Desktop Services
Windows Multipoint Server
Ask the Core Team on Hyper-V
File & Storage & High Availability
File & Storage
Jose Barreto
Partner & Customer Solutions
Ask the Core Team on Failover Cluster
Clustering & High Availability
Windows Server Management
PowerShell
Hey Scripting Guy (PowerShell)
Server Manager
Group Policy
Networking
Identity & Access
Ask Directory Services
Active Directory
Hey, Scripting Guy! Blog
Learn about Windows PowerShell
Live Now on Server & Tools Blogs
Useful Links
Learn Powershell
TechNet Script Center Home page
Scripting Guys Script Repository
The Official Scripting Guys Scripting Forum
Subscribe
Comments
Contact
Menu
Blog Home
Atom
Translate this page
Powered by
Microsoft® Translator
Twitter Feed
Tags
2010 Scripting Games
2011 Scripting Games
2012 Scripting Games
Active Directory
Advanced
Beginner
databases
dates and times
desktop management
event logs
events and monitoring
Excel spreadsheet
files
folders
general management tasks
getting started
guest blogger
leaderboard
Logs and monitoring
Microsoft Excel
Microsoft Outlook
Microsoft Word
networking
Office
operating system
PowerShell 3
PowerTip
processes
Quick-Hits Friday
registry
running
Scripting Guy!
scripting techniques
Scripting Wife
Sean Kearney
searching Active Directory
security
servers
SQL Server
storage
string manipulation
text files
user accounts
using the Internet
VBScript
Web pages and HTAs
Weekend Scripter
Windows PowerShell
WMI
writing
More
▼
Less
▲
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
June 2013
(46)
May 2013
(68)
April 2013
(61)
March 2013
(62)
February 2013
(56)
January 2013
(62)
December 2012
(62)
November 2012
(68)
October 2012
(62)
September 2012
(62)
August 2012
(63)
July 2012
(32)
June 2012
(39)
May 2012
(33)
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)
More
▼
Less
▲
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Delete All the Files in a Folder Older Than 90 Days?
Posted
over 6 years ago
by
ScriptingGuy1
10
Comments
Hey, Scripting Guy! In Windows PowerShell, how can I determine the number of days difference between two dates? I want to be able to delete all the files in a folder that are more than 90 days old. -- JN Hey, JN. You know, today is October 31 st and...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Determine the Age, in Years, of an Office Outlook Contact?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Given the birthday for one of my Office Outlook contacts, how can I tell how old that person is? -- JC Hey, JC. We have to tell you, JC, that you initially gave us quite a start with this question. Why? Well, when the Scripting...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Start a Remote Process Under CScript If the Script Path Contains Blank Spaces?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m trying to create a process that runs a script under the CScript script host. However, I keep running into problems because there are spaces in the script path name. How can I use WMI’s Win32_Process class to run a script under...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Present a Dialog Box that Allows Users to Rename Files?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I present users with a dialog box that enables them to rename a file? Ideally I’d like this to be in a loop of some kind, so that they could rename multiple files without having to restart the script. -- ER Hey, ER. Before...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Be Notified if an Access Database File Exceeds a Specific Size?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I trigger an alert if an Access database file exceeds a specific size? -- MA Hey, MA. You know just the other day Microsoft.com posted 100 Reasons You'll Be Speechless , a Web page listing 100 reasons why “Seeing Windows...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Move Files Based on a Value in the File Name?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a bunch of files that I need to move to new folders; the folder a given file will be moved to is based on the year, a value that appears in the file name. How can I write a script to move these files? -- LP Hey, LP. Before...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Extract All the Text Between Two Tags in a Text File?
Posted
over 6 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a whole bunch of text files in a folder. I need to open each of these files, extract everything between the <filecount> and </filecount> tags, and then write that information to a separate file. How can I do that...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Convert a Number to a Date and Then Back in Excel?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! We have a spreadsheet that includes numbers like this: 31738. However, this isn’t supposed to be a number, it’s actually supposed to be a date: 11/22/1986. How can I convert these numbers to dates and then, if needed, convert those...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve a List of Unique Users from the Security Event Log?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I retrieve a list of unique users from the Security event log? -- KM Hey, KM. Before we tackle your question we should probably address a question sent in by another reader: Hey, Scripting Guy! Whatever...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Tell if a Computer is Bluetooth-Enabled?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I tell if a computer is Bluetooth-enabled? -- RR Hey, RR. You know, any time the Scripting Guys get asked something like this, one question immediately pops into our minds: “So where did the name Bluetooth come from anyway...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Insert New Rows Above the Last Row in an Office Excel Spreadsheet?
Posted
over 6 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have an Office Excel spreadsheet in which the last row in the spreadsheet sums all the rows above it. How can I add new rows (and new data) to this spreadsheet, making sure that the last row always sums up all the rows above it?...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Copy Data from Excel to PowerPoint?
Posted
over 6 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! As part of a demonstration I do on a regular basis, I’d like to be able to open an Excel spreadsheet, copy all the information on Sheet 1, and then paste that data into a new PowerPoint slide. How can I do all that using a script?...
Hey, Scripting Guy! Blog
How Can I Determine the Percentage of Free Space on a Drive?
Posted
over 6 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I determine the percentage of free space available on the drive where a script is running? -- GS Hey, GS. And hey, welcome to another edition of Scripting Guys Trivia , the Internet game show in which the Scripting Guys...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Map Drives Based on IP Address?
Posted
over 6 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have been using your script that maps drives based on group membership, and it works just fine. However, I need to modify the script so that drive mappings are also based on the location of the computer (more specifically, on the...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve Hyperlink Information From an Office Excel Spreadsheet?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have an Office Excel document that includes a hyperlink linked to an email address. The text in the spreadsheet simply says Yes . How can I write a script that retrieves the underlying email address? -- AK Hey, AK. You’ll have...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Search Multiple OUs in Active Directory?
Posted
over 6 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have an HTA that searches Active Directory for user accounts and then displays those user names. We have 10 OUs in Active Directory, but I only want to retrieve the users from three of those OUs. How do I do that? -- DP Hey, DP...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Insert Blank Rows (and Formulas) Into an Office Excel Worksheet?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have some extremely large Office Excel worksheets, and I need to insert a blank row every 240 lines; in that new row I then need to insert a formula that calculates the average of the preceding 240 rows. As you might expect, this...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Remove Unwanted Tabs From a Text File?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, scripting Guy! I have about 5,000 text files that have unwanted tabs at the end of each line. How can I write a script that removes these unwanted tabs? -- TT Note . If this looks – and sounds – a little different than the typical...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Save the Attachments for All My New Office Outlook Messages?
Posted
over 6 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! I’ve been testing your script for saving all the attachments in your Outlook Inbox , and it works great. However, I have a question: is it possible to get this script to run only against new emails? -- CN Hey, CN. Welcome to today...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Convert an Extension Number to an Actual Phone Number?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Our phone numbers are stored in Active Directory as extension numbers; however, we have a set of rules for converting those extensions to actual phone numbers. I’m writing a script to create an Outlook signature, but in that script I need to be able to...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve the Field Size and a Sample Record For All the Tables and Fields in an Office Access Database?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
I recently read an article of yours that showed me how I can retrieve the names of all the tables in an Access database, along with a list of all the fields in each table and the data type of each of those fields. That’s a really useful script, but it...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Automatically Move the Focus as Users Type in an HTA?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
I have an HTA that we use for creating and modifying user accounts. In that HTA we have a couple of phone number fields; each of these fields consists of three text boxes (one for the area code and two for the phone number). I’d like to set this up so...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Search a Text File for Terms Read In From a Second Text File?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a text file that has a list of search terms in it. I would like to write a script that can search for each of those terms in a second file, and then report back any of the terms that couldn’t be found in that second file. How...
Page 1 of 1 (23 items)