header image

Archive for July, 2013

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 hand http://powershell.org/wp/2013/07/30/powershell-great-debate-the-purity-laws/

under: PowerShell original

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 this.

under: PowerShell V3

drive letter functions

Posted by: | July 30, 2013 | No Comment |

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 (GB) Provider      Root —-           ———     ——— ——–      —- Alias                                  Alias C                 103.58        129.21 FileSystem    C:\ […]

under: PowerShell original

Is PowerShell too big?

Posted by: | July 30, 2013 | 1 Comment |

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 Objects Scope Formatting Extensible type System […]

under: PowerShell original

off with his head

Posted by: | July 30, 2013 | No Comment |

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 -AutoSize 2  Red   23.8 47.6 […]

under: PowerShell original

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

under: Books, PowerShell original

Fun with prompts

Posted by: | July 21, 2013 | No Comment |

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.  […]

under: PowerShell Basics

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 you haven’t got a copy please […]

under: Books, PowerShell original

Internet Connection

Posted by: | July 17, 2013 | No Comment |

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 NetworkCategory  : Private IPv4Connectivity : Internet IPv6Connectivity : LocalNetwork What else can you discover? The important information is the InterfaceIndex […]

under: Networking, PowerShell V3, Windows 8, Windows Server 2012

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: […]

under: PowerShell Basics

Older Posts »

Categories