Sign in
TechNet Blogs
Technet Blog Images
More ...
Blog - Title
April, 2008
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
April, 2008
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
(41)
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 Install Fonts Using a Script?
Posted
over 5 years ago
by
ScriptingGuy1
10
Comments
Hey, Scripting Guy! Is there any way I can install a font using VBScript? -- RS Hey, RS. As a general rule, the Scripting Guy who writes this column steers clear of popular culture. (Actually, it’s not just a general rule; popular culture has a restraining...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Determine the Owner of a File?
Posted
over 5 years ago
by
ScriptingGuy1
8
Comments
Hey, Scripting Guy! Is it possible to determine the owner of a file using Windows PowerShell? -- GF Hey, GF. Well, today is April 15 th , which, in the US, can mean only one thing: it’s time to celebrate the birthday of Italian mathematician Pietro...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Parse a Text File and Retrieve All the Information Contained Within Square Brackets?
Posted
over 5 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! I need to parse through a text file and extract the information contained within square brackets. So far, however, I haven’t been able to figure out how to do this; that’s because the data isn’t stored on separate lines in the file...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Determine the Number of Lines in a Text File?
Posted
over 5 years ago
by
ScriptingGuy1
4
Comments
Hey, Scripting Guy! I’m using Windows PowerShell to determine the record count (i.e., the number of lines) in a text file I just created. If the file has 2 lines, no problem; my script reports back a value of 2. If the file only has 1 line, however, I...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Pass Command-Line Arguments to a Batch File Started From a Script?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I am trying to write a script that requests multiple pieces of information from a user; I then want to call a batch file, using each piece of information as a separate command-line argument. Unfortunately, though, I can’t get this...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Sort a Text File Based on a Specific Column in That File?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a text file composed of many different lines; each line has a number of fields, with the fields separated from one another by a tab character. I need to sort this text file based on the value of one of these fields. How can...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Use Windows PowerShell to Look at All the Microsoft Office Documents in a Folder?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I am trying to use Windows PowerShell to look at files on my computer; what I want to do is get back a history (that is, the last time a document was accessed) for all the Microsoft Office files in a folder and its subfolders. However...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Monitor a Folder for the Creation of New Subfolders?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! How can I monitor a folder for the creation of new subfolders? I know that new files can be detected (via WMI events) but the same syntax doesn't detect new folders. -- WS Hey, WS. Before we get started today can we ask you a quick...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Retrieve All the Values in a Registry Key?
Posted
over 5 years ago
by
ScriptingGuy1
3
Comments
Hey, Scripting Guy! Do you have a script that will enable me to enumerate all the values in a registry key? -- DG Hey, DG. You know, this past weekend the Scripting Guy who writes this column went out to buy doughnuts, a process that took much longer...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Find Folders Whose Name Fits a Specified Pattern?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I have a bunch of folders that had names like this: BAD_20080411; in other words, the characters BAD_ followed by the date. These folders can be on any drive on my computer. How can I write a script that will locate all these folders...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Store Arrays Within Another Array?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I need to read in data from a text file and store each line as a separate item in an array. However, the data in each line must also be stored as an array; in other words, I need an array made up of other arrays. I tried creating a...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Import a Fixed-Width Data File into Microsoft Excel?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I import a fixed-width data file into Microsoft Excel? -- RS Hey, RS. This column is being written on a Friday morning, and so far it’s been a very weird morning at that. For one thing, it’s not raining and – if you look...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Read a Text File and Extract All the Text Enclosed in Double Quote Marks?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m trying to write a script that can extract all the values found between a set of double quote marks. I know how to read the text file, and I know how to output any information that I find. However, I can’t figure out how to extract...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Schedule a Meeting Each Monday Through Friday For Two Weeks?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I schedule a meeting to occur every day, Monday through Friday, for two weeks? -- GB Hey, GB. As it turns out, the Scripting Guy who writes this column has not moved to some place where it doesn’t snow in April . That’s...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Separate The Month From the Year in a Date String Like 122007?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I have a column of data in Microsoft Excel that is formatted as MYYYY (12008 = January 2008) and MMYYYY (122007 = December 2007). I need to split these values into month and year, but I can’t figure out how to do that. Any suggestions...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Conditionally Add Lines to a Text File?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I need a script that can read a file and, based on the contents, insert some additional lines of text into that file. Can you help me with that? -- JS Hey, JS. We’re sure that most of you have heard by now that Microsoft has made...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Open an Alternate Home Page If the Default Home Page Isn’t Available?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! In our company we hardcode everyone’s computer to use our intranet site as their Internet Explorer home page. All our users use laptop computers, however, and when they take the machines home with them and try to surf the Web they...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Randomly Assign a Font to Characters in a Word Document?
Posted
over 5 years ago
by
ScriptingGuy1
1
Comments
Hey, Scripting Guy! I’ve come up with a way to imitate handwriting in a document, but I need some help. Because real handwriting is characterized by variability, I had the idea of using four slightly-different fonts, taken from my actual handwriting,...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Check to See if Two Lines of Text are in a File and, If They Aren’t, Append Those Lines to the File?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Let me first say that your stuff is great. Really helpful scripts mixed with great humor; you guys are pissa's (Australian slang for “funny”). I have a script that needs to open a file and check to see if two lines of text are in that...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Delete Duplicate Entries in a Tab-Delimited File?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! How can I delete the duplicate entries in a tab-delimited file? -- ST Hey, ST. Before we start, is anyone out there familiar with the book Not Quite What I Was Planning: Six-Word Memoirs by Writers Famous and Obscure ? Not Quite...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Determine the Currency Symbol in Use on a Computer?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! Is there any way to determine the currency symbol that’s in use on a computer? -- IR Hey, IR. Before we get started today we wanted to mention that the Scripting Son picked up his second win in as many pitching starts the other...
Hey, Scripting Guy! Blog
Hey, Scripting Guy! How Can I Sort Items Retrieved From a Microsoft Outlook Folder?
Posted
over 5 years ago
by
ScriptingGuy1
0
Comments
Hey, Scripting Guy! I’m trying to write a script that does something with all the email messages in my Outlook Inbox. However, I need to sort those messages by the date they were received, and I can’t figure out how to do that. Can you help? -- SL ...
Page 1 of 1 (22 items)