Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
May, 2007
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
May, 2007
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Building Clouds
Partner & Customer Solutions
Server & Cloud
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
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
Microsoft Leadership
Brad Anderson - In the Cloud
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
May 2013
(49)
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
How Can I Copy the Same File to a Number of Different Computers?
Posted
over 6 years ago
by
ScriptingGuy1
15
Comments
Hey, Scripting Guy! I regularly update a file that needs to be copied to all of my servers. How can I write a script that will copy the same file (to the same folder) on multiple computers? -- JU Hey, JU. It’s Monday, May 14 th as we write this column...
Hey, Scripting Guy! Blog
How Can I Replace Single Quote Marks in a Text File?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I saw your column on replacing text in a text file , and that’s almost the solution I’m looking for. However, the text I need to replace is the single quote mark, and I can’t figure out how to do that. How do I replace single quote...
Hey, Scripting Guy! Blog
How Can I Dynamically Hide and Show a Control in an HTA?
Posted
over 6 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! How can I dynamically hide and show a control in an HTA? -- R L-K Hey, R L-K. To tell you the truth, we’re a little distracted today. Admittedly, we’re a little distracted pretty much every day. However, today is different: today...
Hey, Scripting Guy! Blog
How Can I Compare the Contents of Two Text Files?
Posted
over 6 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! I have two separate text files. One file contains a list of MAC addresses taken from a network scan; the other contains a list of MAC addresses for our currently-managed devices. How can I compare these two files, and output a list...
Hey, Scripting Guy! Blog
How Can I Force All the Users in an OU to Change Their Password the Next Time They Log On?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I write a script that will force all the users in an OU to change their password the next time they log on? -- TH Hey, TH. You know, you picked a bad day to ask a question; the Scripting Guy who writes this column is in...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Determine the Home Directory For All the Disabled User Accounts in Active Directory?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I determine the home directory for all the disabled user accounts in Active Directory? -- DB Hey, DB. You know, it’s not like the Scripting Guy who writes this column is addicted to TV or anything, but last night he was...
Hey, Scripting Guy! Blog
How Can I Delete All the Worksheets in a Spreadsheet Except for the First Worksheet?
Posted
over 6 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! How can I delete all the worksheets in an Excel spreadsheet except for the first worksheet? -- NN Hey, NN. Please excuse any bloodstains that might appear on your screen; as it turns out, the Scripting Guy who writes this column...
Hey, Scripting Guy! Blog
How Can I Monitor the Number of Files in a Folder?
Posted
over 6 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! We have a third-party application that rarely crashes; however, when it does crash it seriously disrupts our business. We can always tell when the application is getting ready to crash; at that point, one of its directories starts...
Hey, Scripting Guy! Blog
How Can I Export an HTA Table to Excel?
Posted
over 6 years ago
by
ScriptingGuy1
5
Comments
Hey, Scripting Guy! How can I put a button in an HTA that, when clicked, exports an HTML table to Excel? -- DW Hey, DW. You know, yesterday afternoon the Scripting Guy who writes this column went to get his hair cut, figuring he needs to look his best...
Hey, Scripting Guy! Blog
How Can I Search Every Text File in a Folder For Phone Numbers?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In yesterday’s column you showed us how to search for phone numbers in a text file; you also promised us that in today’s column you’d show us how to modify that script so that it can search through all the text files in a folder. Are...
Hey, Scripting Guy! Blog
How Can I Change the Background Color of Spreadsheet Rows That Have a Date in a Specified Cell?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In an Excel spreadsheet, how can I change the color of a row if there is a date stored a particular cell in that row? -- GL Hey, GL. Some of you might have noticed that there was no Hey, Scripting Guy! column yesterday. Is that...
Hey, Scripting Guy! Blog
How Can I Prevent Users From Typing Anything But Numbers Into an HTA Text Box?
Posted
over 6 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! We have an HTA we use for data input. In one of the text boxes our users are only supposed to type numbers. How can I prevent users from typing anything except numbers in that text box? -- KV Hey, KV. You know that’s a pretty good...
Hey, Scripting Guy! Blog
How Can I Wait Until One Application Has Quit Before Starting a Second Application?
Posted
over 6 years ago
by
ScriptingGuy1
2
Comments
Hey, Scripting Guy! I have a script that starts two applications; however, the second application can not start until the first program has finished running. How can I ensure that my second program doesn’t start until the first one ends? -- OR Hey...
Hey, Scripting Guy! Blog
How Can I Delete the First Line and the Last Line in a Text File?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I delete the first line and the last line in a text file? -- TF Hey, TF. We don’t know if anyone has ever noticed, but Hey, Scripting Guy! tends to meander from time-to-time; there are those occasions when it seemingly takes...
Hey, Scripting Guy! Blog
How Can I Search For Phone Numbers in a Text File?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a bunch of text files, one for each of our employees. Included in these text files are phone numbers: work phone, home phone, cell phone, etc. How can I write a script that searches for and extracts the phone numbers from these...
Hey, Scripting Guy! Blog
How Can I Ensure That a Script Runs Only Once on a Computer?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I ensure that a script runs only once on a computer? -- ML Hey, ML. You know, we were going to start off today’s column by saying, “Show us your bobbleheads!” However, we didn’t want to have to explain to Microsoft people...
Hey, Scripting Guy! Blog
How Can I List All the Meetings Scheduled By a Specified Person?
Posted
over 6 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I get a list of all the upcoming meetings that have been scheduled by a specific person (namely, my manager)? -- GH Hey, GH. Before we tackle this question we’d like to reassure anyone who looked out their window recently...
Hey, Scripting Guy! Blog
How Can I Save Each Paragraph in a Word Document as a Database Record?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! A few days ago you showed us how to open a bunch of text files and save the data in each file as a record in a database. I have a similar question, except that I want to save each paragraph in a Word document as a database record....
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Delete All the Duplicates in a Set of Processes But Keep the Oldest Process?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! If I have a bunch of duplicate processes, how can I delete all of them except for the oldest one? -- IR Hey, IR. We apologize for the delay in answering this question. Originally we thought it would be cute if we could get Peter...
Hey, Scripting Guy! Blog
How Can I Highlight a Keyword in an HTA?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’d like to create an HTA that, upon loading, can open a text file and then display the contents. However, I’d like a particular keyword in those contents to be highlighted. How can I do that? -- GD Hey, GD. You know, a lot of people...
Hey, Scripting Guy! Blog
How Can I Add the Contents of a Group of Text Files to an Access Database?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a folder that has hundreds of text files in it. I’d like to take each of those files and add the contents (as a memo field) to an Access database. How can I do that? -- KB Hey, KB. You know, a few years ago the Scripting...
Hey, Scripting Guy! Blog
How Can I Determine the Topmost OU For an Active Directory Object?
Posted
over 6 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Given a distinguished name, how can I determine the “topmost” OU? -- HF Hey, HF. You know, as he was driving in to work this morning, the Scripting Guy who writes this column heard an advertisement for a series of adult education...
Page 1 of 1 (22 items)