Sign in
Browse by Tags
TechNet Blogs
»
Hey, Scripting Guy! Blog
»
All Tags
»
arrays hash tables and dictionary objects
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 Team Blog
Hey, Scripting Guy! Blog
Learn about Windows PowerShell
Live Now on Server & Tools Blogs
Subscribe
Comments
Contact
Menu
Home
Atom
Translate this page
Powered by
Microsoft® Translator
Twitter Feed
Recent Posts
‘Twas the Night of Before Scripting: Part 1
Posted
6 hours ago
by
The Scripting Guys
The Scripting Guys
PowerTip: Debug a Workflow with PowerShell 4.0
Posted
18 hours ago
by
The Scripting Guys
The Scripting Guys
1
Comment
Security Series: Using PowerShell to Enable BYOD–Part 2
Posted
1 day ago
by
The Scripting Guys
The Scripting Guys
PowerTip: Use PowerShell to Discover Console Colors
Posted
1 day ago
by
The Scripting Guys
The Scripting Guys
Tags
2010 Scripting Games
Active Directory
Beginner Event 9
Chris Wu
Desktop Management
folders
general management tasks
getting started
Guest Blogger
Microsoft Excel
Office
Quick-Hits Friday
Regular Expressions
running
Scripting Guy!
scripting techniques
Security
Storage
text files
Troubleshooting
using the Internet
VBScript
Weekend Scripter
Windows PowerShell
WMI
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
December 2013
(46)
November 2013
(60)
October 2013
(65)
September 2013
(61)
August 2013
(63)
July 2013
(63)
June 2013
(69)
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
▲
Tagged Content List
Blog Post:
PowerTip: Use PowerShell to Create Hash Table
The Scripting Guys
Summary : Use a Windows PowerShell cmdlet to create a hash table. How can I use Windows PowerShell to create a hash table if do not remember the special syntax? Use the ConvertFrom-StringData cmdlet, and put each key-value pair on its own line. (You can perform this on a single line by using backtick...
on
27 Dec 2013
Blog Post:
Phantom Elements in a Hash Table
The Scripting Guys
Summary : Microsoft PFE and guest blogger, Chris Wu, talks about working with hash tables. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Chris Wu … Admittedly, hash tables didn’t catch my attention when I started using Windows PowerShell, but over time it...
on
27 Dec 2013
Blog Post:
Weekend Scripter: Improve Performance When Combining PowerShell Arrays
The Scripting Guys
Summary : Microsoft premier field engineer, Chris Wu, talks about combining Windows PowerShell arrays. Microsoft Scripting Guy, Ed Wilson, is here. Chris Wu, a Microsoft PFE, is back to share his knowledge. See previous Hey, Scripting Guy! Blog guest posts from Chris. Here is contact information...
on
27 Apr 2013
Blog Post:
Create a Hash Table in PowerShell that Contains Hash Tables
The Scripting Guys
Summary : Learn how to work with hash tables that contain other hash tables in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Well, it is a typical winter day here in Charlotte, North Carolina in the United States. I am not talking about a nice, cool, sunny day with cobalt blue skies...
on
10 Dec 2011
Blog Post:
Easily Create and Manipulate an Array of Arrays in PowerShell
The Scripting Guys
Summary : Learn about creating an array of arrays in Windows PowerShell, and see how to store numerical data and rich objects in elements. Microsoft Scripting Guy, Ed Wilson, is here. Yesterday in Charlotte, North Carolina in the United States, it was 60 degrees Fahrenheit (that is 15 degrees Celsius...
on
9 Dec 2011
Blog Post:
Read a CSV File and Build Distinguished Names on the Fly by Using PowerShell
The Scripting Guys
Summary : Learn two ways to read a CSV file with Windows PowerShell and build distinguished names on the fly. Hey, Scripting Guy! I am working on my first big project with Windows PowerShell, and I have been unable to locate a good answer on the Internet. I am having trouble figuring out how to connect...
on
8 Dec 2011
Blog Post:
Format Multilevel Arrays in PowerShell
The Scripting Guys
Summary : Microsoft Scripting Guy Ed Wilson talks about formatting multilevel arrays in Windows PowerShell. Hey, Scripting Guy! I am having a problem with arrays. I have two-level arrays and they work perfectly when I have the arrays defined on a single line. But when I try to format my script...
on
22 Sep 2011
Blog Post:
Use PowerShell Hash Tables with Your Cmdlets
The Scripting Guys
Summary : Learn how to Use Windows PowerShell hash tables with your cmdlets to create powerful commands. Hey, Scripting Guy! I think I understand hash tables after having read your earlier articles about working with hash tables. What I do not understand is how hash tables work within Windows PowerShell...
on
7 Jul 2011
Blog Post:
Learn the Basics of PowerShell Hash Tables
The Scripting Guys
Summary : Microsoft Scripting Guy Ed Wilson covers the basics of hash tables in Windows PowerShell. Hey, Scripting Guy! I have been reading your articles for several years, but I have never been compelled to write until today. I was reading an old article about putting all the Windows PowerShell...
on
4 Jul 2011
Blog Post:
Create a Hash Table with PowerShell Aliases and Definitions
ScriptingGuy1
Summary : In preparation for creating a Windows PowerShell ISE add-on to automatically remove aliases, Scripting Guy Ed Wilson builds a hash table with alias definitions. Microsoft Scripting Guy, Ed Wilson, here. It has finally happened, I unveiled the last event of the 2011 Windows PowerShell Scripting...
on
16 Apr 2011
Blog Post:
The 2011 Scripting Games Advanced Event 7: Map User's Names and Twitter Names with PowerShell
ScriptingGuy1
Summary : Advanced Event 7 in 2011 Scripting Games uses Windows PowerShell to map user's names to Twitter names. About this event Division Advanced Date of Event 4/12/2011 12:15 AM Due Date 4/19/2011 12:15 AM Event...
on
12 Apr 2011
Blog Post:
Speed Up Array Comparisons in Powershell with a Runtime Regex
ScriptingGuy1
Summary : Learn how to speed up array comparisons in Windows PowerShell by using a runtime regular expression Hey, Scripting Guy! I am interested in speeding up comparisons of arrays when I use Windows PowerShell. Can you help me? —CR Hello CR, Microsoft Scripting Guy, Ed Wilson...
on
18 Feb 2011
Blog Post:
2010 Scripting Games: Beginner Event 9--Adding Arrays
ScriptingGuy1
Note : We are no longer accepting entries for this event. See the due dates page for a list of all event due dates. About This Event Division Beginner Date of Event May 6, 2010 Due Date May 13, 2010 ...
on
6 May 2010
Blog Post:
Hey, Scripting Guy! How Can I Parse My Firewall Log File to See What Kind of Packets Are Being Sent?
ScriptingGuy1
Hey, Scripting Guy! I would like to parse the firewall log on my computer and find out the kinds of packets that are going out. You know, how many Web page packets, how many DNS lookups, how many pings. That kind of stuff. I figure that I can look at these logs and pick up diagnostic information. For...
on
17 Apr 2009
Blog Post:
Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (03/27/09)
ScriptingGuy1
Determining if SQL Is Installed; How to Read Paired Information into a Dictionary Object Hey, Scripting Guy! Being an avid reader of your columns for the last several years has been a blast. I wrote you once before but with no success (in terms of a reply, which was expected, and in terms of not seeing...
on
28 Mar 2009
Blog Post:
Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (02/13/09)
ScriptingGuy1
How Do I Troubleshoot Some Scripts Not Executing on Certain Computers? Hey, Scripting Guy! I have VBScripts executed using GPOs per organizational unit. For some reason, the scripts are not executed on certain computers. Sometimes, clicking Repair on Local Area Network connection and logging off...
on
14 Feb 2009
Blog Post:
Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (01/23/09)
ScriptingGuy1
How Can I Return File Names of Files Created in Less Than an Hour from the Current Time? Hey, Scripting Guy! I am attempting to write a script that looks at the creation dates of all files in a certain directory. If the files were created less than an hour from the current time, the script will...
on
24 Jan 2009
Blog Post:
Hey, Scripting Guy! How Can I Import a Fixed-Width Data File into Microsoft Excel?
ScriptingGuy1
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 closely – you can even see the sun. (It’s been awhile...
on
15 Apr 2008
Blog Post:
Hey, Scripting Guy! How Can I Remove Duplicate Values From a Pair of Text Files?
ScriptingGuy1
Hey, Scripting Guy! I have two text files that contain numbers. I need to write a script that can determine whether a given number exists in both of these text files. If it does, I need to delete that line from each of the two files. How do I do that? -- KT Hey, KT. Before we get started today, we...
on
14 Dec 2007
Blog Post:
How Can I Delete Duplicate Items From an Array?
ScriptingGuy1
Hey, Scripting Guy! How can I delete duplicate items from an array? -- WR Hey, WR. You know, if Microsoft has a weakness – and we’re not saying that it does, we’re just saying if it does – it’s this: we never make mistakes. (What’s that? What about Windows ME? That’s a weird name; couldn’t possibly...
on
28 Oct 2006
Blog Post:
How Can I Verify That All the Items in a List Also Appear in Another List?
ScriptingGuy1
Hey, Scripting Guy! I have a dumb question for you: If I have two lists how can I verify that all the items in list 2 can be found in list 1? -- SS Hey, SS. Trust us; we’ve heard sillier questions. For example, awhile back the Scripting Son came downstairs on a Saturday morning to find the Scripting...
on
22 Sep 2006
Blog Post:
How Can I Get the Names of 10 Randomly-Selected Files in a Folder?
ScriptingGuy1
Hey, Scripting Guy! How can I get the names of 10 randomly-selected files in a folder? I need to do that so I can test and verify our backup and restore policies. -- CS Hey, CS. You know, if you’re interested in things that are random, haphazard, arbitrary, or downright chaotic, well, you came to...
on
17 Jul 2006
Blog Post:
How Can I Test a Dynamic Array to See if the Array is Empty?
ScriptingGuy1
Hey, Scripting Guy! How can I test a dynamic array to see if the array is empty? -- SH Hey, SH. Today’s column is dated Wednesday, July 5 th . If there really is a column today that means that, unlike last year, the neighbors and their errant fireworks didn’t set fire to the Scripting House. If there...
on
6 Jul 2006
Blog Post:
How Can I Import a Fixed-Width File into Microsoft Excel?
ScriptingGuy1
Hey, Scripting Guy! How can I import a fixed-width file into Microsoft Excel? -- JP Hey, JP. We have a confession to make here, something we’re terribly ashamed of: for a moment - just for a moment, mind you - we doubted Microsoft Excel. Yes, we know: how could we do such a thing? All we can say is...
on
17 Nov 2005
Blog Post:
How Can I Determine the Number of Items Generated by the Split Function?
ScriptingGuy1
Hey, Scripting Guy! I know I can use the Split function to split a line into individual items. But how can I tell how many “splits” I ended up with; that is, how many individual items did I generate from a single line? -- SA Hey, SA. For those of you who are relative newcomers to scripting (or those...
on
10 Jun 2005