PowerShell for Windows Admins:

July, 2013


July 31, 2013  3:04 PM

Pure PowerShell–the great debate



Posted by: Richard Siddaway
PowerShell

One of the outcomes of the Scripting Games is a series of debates on powershell.org regarding things that were noticed during the games. The latest is on using “pure” powershell as opposed to adding .NET, COM, utilities and whatever comes to...

July 31, 2013  1:33 PM

PowerShell Jump Start recordings



Posted by: Richard Siddaway
PowerShell 3

The records of the PowerShell Jump Start from two weeks ago are now available. 9 sessions on PowerShell 3.0 delivered by Jason Helmick and Jeffrey Snover. http://www.microsoftvirtualacademy.com/training-courses/getting-started-with-powershell-3-0-jump-start It doesn’t get any better than...


July 30, 2013  3:28 PM

drive letter functions



Posted by: Richard Siddaway
PowerShell

Have you ever looked at the functions available to you in PowerShell? Get-ChildItem function: shows the list of functions currently available in your PowerShell session. function: is a PowerShell drive. Other drives are available: £ Get-PSDrive Name Used (GB) Free...


July 30, 2013  2:04 PM

Is PowerShell too big?



Posted by: Richard Siddaway
PowerShell

I was thinking the other day about the differences between PowerShell v1 and the new v4 we’ll be getting soon. There is so much in PowerShell that its very difficult to be an expert in aspects. Think about these topics for a moment: PowerShell pipeline Error handling and debugging...


July 30, 2013  12:42 PM

off with his head



Posted by: Richard Siddaway
PowerShell

CSV files are great for passing information around and are very easy to use in your PowerShell scripts. Sometimes, your CSV may have a problem – for instance it doesn’t have a header row. At that point the data becomes a bit difficult to use: £ Import-Csv .\htest.csv | Format-Table...


July 21, 2013  12:10 PM

PowerShell remoting book



Posted by: Richard Siddaway
Books, PowerShell

I mentioned several times during the Q&A for the PowerShell jump start that a free PowerShell remoting book was available from powershell.org The book can be found here - http://powershell.org/wp/books/ Scroll down the list to see lots of free books


July 21, 2013  9:48 AM

Fun with prompts



Posted by: Richard Siddaway
PowerShell

At the PowerShell Jumpstart event there were a lot questions asking how Jeffrey Snover managed to get a dollar sign – $ – as his prompt. A lot of them centred on asking if this was a PowerShell v4 thing. Its not a V4 thing. You have been able to change the prompt since v1. The...


July 21, 2013  9:03 AM

PowerShell Deep Dives is published



Posted by: Richard Siddaway
Books, PowerShell

PowerShell Deep Dives is a collection of chapters from PowerShell authorities world wide. The book is now published http://manning.com/hicks/ The royalties from the book all go to Save the Children If you’ve bought a copy thank you for your support – your book will be with you soon. If...


July 17, 2013  2:05 PM

Internet Connection



Posted by: Richard Siddaway
Network, PowerShell 3, Windows 8, Windows Server 2012

Can you find the network adapter on your machine that’s connected to the Internet? On a Windows 8/2012 machine its fairly simple: PS> Get-NetConnectionProfile -IPv4Connectivity Internet Name : NetworkName InterfaceAlias : AdapterName InterfaceIndex : 12...


July 16, 2013  12:51 PM

CSV fields with spaces in the field name



Posted by: Richard Siddaway
PowerShell

CSV files are one way we can get data into our scripts – but sometimes when we get given a CSV file it has spaces in the field name e.g. "Area Number" 1 2 3 2 3 1 5 Dealing with this can be a bit awkward but you can access the field like this: Import-Csv area.csv |...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: