Sign in
TechNet Blogs
Technet Blog Images
More ...
Browse by Tags
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
All Tags
>
string manipulation
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
Subscribe
Comments
Contact
Menu
Blog Home
Atom
Translate this page
Powered by
Microsoft® Translator
Twitter Feed
Recent Posts
PowerTip: Create a PowerShell Script Block on the Fly
Posted
8 hours ago
by
The Scripting Guys
0
Comments
PowerShell Hash Tables that Contain Keywords...hmm...
Posted
20 hours ago
by
The Scripting Guys
2
Comments
PowerTip: Create an XML Representation of a Registry Key with PowerShell
Posted
1 day ago
by
The Scripting Guys
1
Comments
Use PowerShell to Copy Only Folders that Contain Files
Posted
1 day ago
by
The Scripting Guys
5
Comments
Tags
Active Directory
arrays hashtables and dictionary objects
DACLS and SACLS
dates and times
Excel.Application
files
FileSystemObject
getting started
guest blogger
Office
operating system
Quick-Hits Friday
regular expressions
Scripting Guy!
scripting techniques
Sean Kearney
Select-String
storage
text files
user accounts
VBScript
VBScript migration
Weekend Scripter
Windows PowerShell
WMI
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
May 2013
(45)
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
▲
Tagged Content List
Blog Post:
Multiply PowerShell Strings to Customize Text Underlines
The Scripting Guys
Summary : Create a Windows PowerShell function that accepts pipelined input and creates a variable length underline that uses various characters. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I really enjoy doing is reading the comments that are posted by various people on the Hey...
on
29 Jan 2012
Blog Post:
Use PowerShell String Techniques to Create User Names for Active Directory
The Scripting Guys
Summary : Microsoft PowerShell MVP, Sean Kearney, shows how to use Windows PowerShell string techniques to create user names for Active Directory. Microsoft Scripting Guy, Ed Wilson, is here. It is time for PowerShell in Blueville Part 3 with Honorary Scripting Guy and Windows PowerShell MVP, Sean...
on
21 Dec 2011
Blog Post:
Use PowerShell Parameter Attributes to Avoid Errors
The Scripting Guys
Summary: Use Windows PowerShell parameter attributes to avoid input errors in a function. Microsoft Scripting Guy Ed Wilson here. This week is great. The Scripting Wife and I are enjoying meeting Windows PowerShell luminaries. I am working with a group of IT pros to help them to learn Windows PowerShell...
on
11 Oct 2011
Blog Post:
Cool PowerShell Game Teaches Cmdlet Names
The Scripting Guys
Summary: Learn Windows PowerShell cmdlet names by taking the Dr. Scripto Challenge. Microsoft Scripting Guy Ed Wilson here. The Scripting Wife and I are on a road trip in Canada. We had a wonderful time in Toronto with Windows PowerShell MVP Sean Kearney. Now we are heading to Ottawa where we plan to...
on
10 Oct 2011
Blog Post:
Two Simple PowerShell Methods to Remove the Last Letter of a String
The Scripting Guys
Summary : Learn two simple Windows PowerShell methods to remove the last letter of a string. Hey, Scripting Guy! I have, what should be a simple question. I need to be able to remove only the last character from a string. For example, if I have a string the scripts , I want the string to be the...
on
21 Sep 2011
Blog Post:
Convert Hexadecimal to ASCII Using PowerShell
The Scripting Guys
Summary : Superhero BATCHman defeats evil Hextor and converts hexadecimal to ASCII to retrieve passwords. Microsoft Scripting Guy Ed Wilson here. Sean Kearney is back again, and this time he delivers Episode 7 of the BATCHman series. Whenever trouble happens in systems and people will...
on
9 Sep 2011
Blog Post:
Use PowerShell to Convert Date Formats Easily
The Scripting Guys
Summary : Microsoft Scripting Guy Ed Wilson discusses four different techniques for using Windows PowerShell to convert date formats. Hey, Scripting Guy! I have a problem. Although I am sure you hear this a lot, this problem is causing me a major problem at work. Here is the deal. We are a large...
on
24 Aug 2011
Blog Post:
Use PowerShell to Open Files That Contain Matching Words
The Scripting Guys
Summary : Learn how to use Windows PowerShell to search a folder for matching strings and to open them automatically in Notepad. Hey, Scripting Guy! I have been enjoying using the Select-String cmdlet, but I have a question. When I use Select-String , it lists the file that it finds the match in...
on
5 Aug 2011
Blog Post:
Use an Easy PowerShell Command to Search Files for Information
The Scripting Guys
Summary : Learn how to use a Windows PowerShell command to search easily for information in a collection of files. Hey, Scripting Guy! I need to be able to parse multiple files for text that are in a single folder. I hate to have to write a script for such a common task, but I am afraid I will...
on
4 Aug 2011
Blog Post:
Using the PowerShell Tokenizer to Find Commands in Text
ScriptingGuy1
Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use the Windows PowerShell tokenizer to parse text and identify commands. Microsoft Scripting Guy, Ed Wilson, here. There are still five days for you to submit your entries for the 2011 Scripting Games. Events 1 through 5 are in the bag, but...
on
17 Apr 2011
Blog Post:
Use Microsoft .NET Framework String Methods from Windows PowerShell
ScriptingGuy1
Summary: Microsoft Scripting Guy Ed Wilson teaches how to use .NET Framework string methods from within Windows PowerShell, Hey, Scripting Guy! There are many things I need to do with strings and with text files that do not seem to be supported with Windows PowerShell. It is strange, but many common...
on
28 Oct 2010
Blog Post:
Use .NET Framework Classes to Work with Strings in Windows PowerShell
ScriptingGuy1
Summary: Learn how to use .NET Framework classes to work with strings in Windows PowerShell in this Scripting Guys how-to post. Hey, Scripting Guy! I have been writing VBScript code for years. One thing I really liked about VBScript was the large number of functions that manipulated strings. I...
on
27 Oct 2010
Blog Post:
Get Windows Power Plan Settings on Your Computer by Using PowerShell
ScriptingGuy1
Summary : Use Windows PowerShell to retrieve the power plan settings for your computer. The Microsoft Scripting Guys show you how. Hey, Scripting Guy! I need to have a way to easily retrieve the power plan settings for the active power plan on my computer. I would like to have an easy to read display...
on
31 Aug 2010
Blog Post:
Writing Double Quotation Marks to a Text File Using Windows PowerShell
ScriptingGuy1
Hey, Scripting Guy! I need to be able to write double quotation marks to a text file using Windows PowerShell . I know that in VBScript it was really annoying to do this because the quotation marks ended up getting confused with the quotation mark that was used to indicate the start of a string; when...
on
28 Jul 2010
Blog Post:
Deleting Extra Returns and Line Feeds from a Text File Using Windows PowerShell
ScriptingGuy1
Hey, Scripting Guy! Is it possible to use Windows PowerShell to groom a text file by deleting extra returns and line feeds it may contain? Here is the deal. I have a file that we need to download each day. This file contains updated prices for commodities used in our manufacturing operation. We...
on
27 Jul 2010
Blog Post:
Parsing an AuditPol.exe Report with Windows PowerShell 2.0
ScriptingGuy1
Hey, Scripting Guy! I have been using AuditPol.exe to verify the audit policy that is configured on our network. The problem is that the report that is generated has a lot of text, and it is not easy to see exactly what is being audited or not. Is it possible to use Windows PowerShell 2.0 to parse the...
on
26 Jul 2010
Blog Post:
Hey, Scripting Guy! How can I Migrate a VBScript to Windows PowerShell that parses a log file for errors?
ScriptingGuy1
Q: Hey Scripting Guy! I need to migrate a VBScript to Windows PowerShell 2.0 that I use to parse a log file for errors that occur during a specific operation. I am only interested in the errors, not the success statements. Because this log has a tendency to grow rather large, I would like to write the...
on
1 Jul 2010
Blog Post:
Hey, Scripting Guy! How can I Convert a VBScript That Searches Text Files into Windows PowerShell?
ScriptingGuy1
Q: Hey Scripting Guy! I need to convert a VBScript into Windows PowerShell 2.0. The script reads the first line of all text files that are in a particular folder, and if a specific word is in that file, it moves the text file to an archive folder. -- AO A: Hello AO, Microsoft Scripting Guy Ed Wilson...
on
30 Jun 2010
Blog Post:
Hey, Scripting Guy! How can I use Windows PowerShell to Search a Text File for multiple strings?
ScriptingGuy1
Q: Hey Scripting Guy! I need help migrating a script from VBScript to Windows PowerShell 2.0. The VBScript is one that I based upon an old Hey Scripting Guy! article. I use it to search a text file for specific words. If the words are found, the script displays a message stating this fact. I do not want...
on
29 Jun 2010
Blog Post:
Hey, Scripting Guy! How Can I Use Windows PowerShell to Create a Text File with Fixed-Length Lines?
ScriptingGuy1
Hey, Scripting Guy! I am trying to learn Windows PowerShell 2.0, but I am having some issues when it comes to string manipulation. I have been a faithful reader of the Scripting Guys for several years, and I have found many of the scripts to be critical in my business environment. I wish...
on
28 Jun 2010
Blog Post:
Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (2/26/10)
ScriptingGuy1
In this post : Can I Retrieve the Version of Installed Java Applications? How Can I Run a Function Based on What Is or Is Not Entered on the Command Line? How Can I Properly Use Double Quotation Marks for Expansion? Does Windows 7 Support Scripting Registry Changes? Can I Retrieve...
on
26 Feb 2010
Blog Post:
Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (2/12/10)
ScriptingGuy1
In this post : I Think You Guys Made a Mistake in This Article I Found Using Windows PowerShell to Set the "Managed By" Field How Can I Name Folders with Owners' User Names? How Can I Tell If I Am Running Windows PowerShell 2.0? Is Windows PowerShell 2.0 Available for Windows 7 and...
on
12 Feb 2010
Blog Post:
Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (10/16/09)
ScriptingGuy1
In this post : Has the WMI Problem with Dates and Daylight Saving Time Been Resolved? How Can I Change the Color of Error Messages in the Windows PowerShell Console? How Can I Read a Text File and Update 2,000 User Accounts? Can I Use a WildCard Character for File Names with the FileSystemObject...
on
16 Oct 2009
Blog Post:
Hey, Scripting Guy! How Can I Clean Up File Names?
ScriptingGuy1
Share this post: Hey, Scripting Guy! We have a number of files that were manually created by various people in a common folder. Unfortunately, they did not follow a specific naming convention as well as they should, and as a result they do not sort very well. Some people preceded the file names with...
on
21 Sep 2009
Blog Post:
Hey, Scripting Guy! How Can I Create File Names Based on Their Time Stamp?
ScriptingGuy1
Hey, Scripting Guy! How can I create a file name from the date? I have this application that creates a log file, and every hour I would like to save that log file as a file whose name is generated from the current time stamp. Can this be done? - RH Hi RH, Ever since I read your e-mail message,...
on
31 Dec 2008
Page 1 of 2 (48 items)
1
2