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
»
Function
»
PowerShell v2.0
(
RSS
)
Browse by Tags
Share
|
Recent Posts
Export and Import Hash Tables
Friday Fun: Output to 2 Places in 1
Friday Fun – A Christmas Prompt
Friday Fun Export Transcript to Script
Get Shared Resource
Archives
May 2013 (10)
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
parameter
PowerShell
Powershell 3.0
PowerShell ISE
PowerShell v2.0
ScriptBlock
Scripting
Training
Validation
Windows Server
WMI
Write-Host
View more
CSV
Demo
export
Friday Fun
FridayFun
Get-WMIObject
hashtable
import
networking
port
PowerShell
Professional
prompt
ScriptBlock
Scripting
Start-Transcript
Tee-Object
Training
transcript
Variable
WMI
Write-Host
Write-progress
Write-Warning
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
Friday Fun: Output to 2 Places in 1
Today’s Friday Fun comes out of a short exchange I had yesterday with Hal Rottenberg on Google Plus. We were playing around with piping a PowerShell command to Clip.exe which dumps the output to the Windows Clipboard. I got to … Continue reading...
Published
Fri, Jan 01 2012 7:50 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
Function
,
PowerShell v2.0
,
Write-Host
,
Friday Fun
,
FridayFun
,
Tee-Object
Friday Fun – A Christmas Prompt
#leftcontainerBox { float:left; position: fixed; top: 60%; left: 70px; } #leftcontainerBox .buttons { float:left; clear:both; margin:4px 4px 4px 4px; padding-bottom:2px; } #bottomcontainerBox { width: 50%; padding-top:... [[ This is a content summary...
Published
Fri, Nov 11 2011 8:00 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
Function
,
PowerShell v2.0
,
Friday Fun
,
FridayFun
,
prompt
Friday Fun Export Transcript to Script
Over the years I’ve posted variations on this technique and discuss it often in my training classes. The idea is to take your PowerShell transcript and transform it into a PowerShell script. Remember that there is very little difference between...
Published
Fri, Aug 08 2011 9:58 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Function
,
PowerShell v2.0
,
Friday Fun
,
transcript
,
Start-Transcript
Get Shared Resource
I was poking around WMI the other day in PowerShell and was intrigued by the Win32_Share class. This is a great way to find out what items are shared on a server such as printers and folders, although it’s not … Continue reading → Read...
Published
Tue, Jul 07 2011 8:10 AM
by
The Lonely Administrator
Filed under:
Scripting
,
WMI
,
PowerShell
,
Function
,
PowerShell v2.0
,
Get-WMIObject
Test Port 2.0
A few years ago I updated a PowerShell script I came across to scan a computer for open ports. My initial revision was aimed at making it more pipeline friendly in PowerShell v1.0. I recently needed to use the function … Continue reading →...
Published
Tue, May 05 2011 7:52 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Function
,
PowerShell v2.0
,
port
,
Write-progress
,
networking
Friday Fun: Start-TypedDemo v2
Not too long ago I posted a function I wrote for doing PowerShell demonstrations. My goal was to simulate a live interactive demo but without the typing so I could focus on explaining and not typing. The first version was … Continue reading →...
Published
Fri, May 05 2011 8:28 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Function
,
Training
,
PowerShell v2.0
,
Write-Host
,
Friday Fun
,
ScriptBlock
,
Professional
Warning Signs
I was working on a project with an advanced PowerShell function. One of the goals was to take advantage of the common parameters like -ErrorVariable and -WarningVariable so that when you run the function you can save errors and warnings … Continue...
Published
Wed, May 05 2011 7:14 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Function
,
PowerShell v2.0
,
Write-Warning
,
Variable
Start-TypedDemo
As you know, I do a lot of presenting and training. Normally I use the ubiquitous Start-Demo function to run through a demo list of commands. Most of this time this works just fine. But when I’m doing videos, especially … Continue reading...
Published
Tue, May 05 2011 9:04 AM
by
The Lonely Administrator
Filed under:
Scripting
,
PowerShell
,
Demo
,
Function
,
Training
,
PowerShell v2.0
,
Write-Host
Copyright 2012 PowerShell.com. All rights reserved.