Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Featured Posts
Dreaming in PowerShell
Don Jones
Code MarkUp Tool
Directory
The Lonely Administrator
»
All Tags
»
hashtable
»
PowerShell
(
RSS
)
Browse by Tags
Share
|
Recent Posts
Rename Hashtable Key Revised
Join PowerShell Hash Tables
Convert PowerShell Object to Hashtable Revised
Rename Hashtable Key
Hyper-V ID Hash Table
Archives
May 2013 (9)
April 2013 (10)
March 2013 (6)
February 2013 (8)
January 2013 (15)
December 2012 (5)
November 2012 (7)
October 2012 (5)
September 2012 (2)
August 2012 (3)
July 2012 (4)
June 2012 (8)
May 2012 (11)
April 2012 (18)
March 2012 (2)
February 2012 (10)
January 2012 (12)
December 2011 (10)
November 2011 (15)
October 2011 (12)
September 2011 (4)
August 2011 (9)
July 2011 (8)
June 2011 (6)
May 2011 (10)
April 2011 (8)
Tags
CommandLine
Conferences
Friday Fun
FridayFun
Function
functions
Get-WMIObject
Google Plus
Group Policy
hashtable
Hyper-V
objects
Out-Gridview
Pipeline
PowerShell
Powershell 3.0
PowerShell ISE
PowerShell v2.0
ScriptBlock
Scripting
Training
Validation
Windows Server
WMI
Write-Host
View more
Array
CommandLine
Conferences
CSV
DeepDive
export
Friday Fun
FridayFun
Function
functions
get-member
Hyper-V
import
ISE
Miscellaneous
new-object
objects
Out-Gridview
parameter
Pipeline
Powershell 3.0
PowerShell ISE
PowerShell v2.0
ScriptBlock
Scripting
Windows 8
Windows Server 2012
Rename Hashtable Key Revised
Last week I posted an advanced PowerShell function to rename a hashtable key. As usual, the more I worked with it the more I realized it was missing something – namely the ability the take a pipelined object. My original version assumed you had...
Published
Thu, Jan 01 2013 8:54 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Pipeline
,
parameter
,
hashtable
Join PowerShell Hash Tables
I received a lot of feedback and interest in my ConvertTo-Hashtable function. One question I received was “Why?” Well, one reason might be that you want to combine two objects into a single object. Joining them as two hashtables makes this...
Published
Wed, Jan 01 2013 10:01 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
hashtable
Convert PowerShell Object to Hashtable Revised
A while back I posted an advanced PowerShell function that would take an object and convert it to a hashtable. The premise was simple enough: look at the incoming object with Get-Member to discover the property names then create a hashtable with each...
Published
Tue, Jan 01 2013 8:29 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
get-member
,
hashtable
Rename Hashtable Key
I use hashtables quite a bit. Often generating hashtables on the fly from other sources. But sometimes the hashtable keys that come from these external sources don’t align with what I intend to do with the hashtable. For example, one of the nifty...
Published
Wed, Jan 01 2013 1:18 PM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
hashtable
Hyper-V ID Hash Table
In Hyper-V, one of the challenges (at least that I’ve run into) has to do with naming. In addition to a name, Hyper-V objects such as virtual machines, are identified with a GUID. Most of the VM-related PowerShell cmdlets will let you specify a...
Published
Thu, Jan 01 2013 11:11 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
hashtable
,
Hyper-V
,
Windows Server 2012
Create PowerShell Scripts with a Single Command
One of the drawbacks to using a PowerShell script or function is that you have to write it. For many IT Pros, especially those new to PowerShell, it can be difficult to know where to start. I think more people would write their own tools if there was...
Published
Wed, Dec 12 2012 12:04 PM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Function
,
PowerShell ISE
,
hashtable
,
ISE
PowerShell Hyper-V Memory Report
Since moving to Windows 8, I’ve continued exploring all the possibilities around Hyper-V on the client, especially using PowerShell. Because I’m trying to run as many virtual machines on my laptop as I can, memory considerations are paramount...
Published
Thu, Nov 11 2012 8:20 AM
by
The Lonely Administrator
Filed under:
functions
,
Scripting
,
PowerShell
,
hashtable
,
Powershell 3.0
,
Out-Gridview
,
Windows 8
,
Hyper-V
,
Windows Server 2012
Export and Import Hash Tables
I use hash tables quite a bit and with the impending arrival of PowerShell 3.0 I expect even more so. PowerShell v3 allows you to define a hash table of default parameter values. I’m not going to to cover that … Continue reading → Read...
Published
Thu, Feb 02 2012 9:25 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Function
,
PowerShell v2.0
,
hashtable
,
CSV
,
export
,
import
Convert Text to Object
Today I have another tool in my new battle regarding turning command line tools into PowerShell tools. The bottom line is we want to have objects written to the pipeline. At the PowerShell Deep Dive in Frankfurt there was a … Continue reading →...
Published
Tue, Oct 10 2011 8:09 AM
by
The Lonely Administrator
Filed under:
functions
,
Scripting
,
PowerShell
,
DeepDive
,
Conferences
,
new-object
,
objects
,
hashtable
,
CommandLine
Friday Fun Convert Object to Hash Table
I’ve been working on a few PowerShell projects recently and one requirement I had was to turn an object into a hash table. I thought this was something that was already handled in PowerShell but I couldn’t find a cmdlet … Continue reading...
Published
Fri, Oct 10 2011 9:13 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
Function
,
Friday Fun
,
Miscellaneous
,
objects
,
get-member
,
hashtable
Friday Fun What a CHAR!
Last week I posted a PowerShell snippet on Twitter. My original post piped an array of integers as [CHAR] type using an OFS. Don’t worry about that. As many people reminded me, it is much easier to use the -Join … Continue reading →...
Published
Fri, Sep 09 2011 9:00 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
PowerShell v2.0
,
Friday Fun
,
FridayFun
,
ScriptBlock
,
hashtable
,
Array
Copyright 2012 PowerShell.com. All rights reserved.