header image

Archive for August, 2014

Learning, always learning

Posted by: | August 21, 2014 | 1 Comment |

PowerShell is going mainstream amongst the administrator community – it may seem slow but the last couple of years has definitely seen a sustained upswing in adoption in my experience. As more people are demonstrating the benefits we see more people asking how they can learn PowerShell.   Two good ways come to mind. First […]

under: Books, PowerShell

Count property

Posted by: | August 20, 2014 | 1 Comment |

Its frequently said that PowerShell is so big that no one can know everything about it.  I proved that today when I “discovered” a change in PowerShell of which I wasn’t aware.   If you create an array: £> $a = 1,2,3 You can then get the number of members of that array i.e. its […]

under: PowerShell Basics

Split-Path serendipity

Posted by: | August 20, 2014 | No Comment |

I’ve used Split-Path and its associated cmdlet Join-Path a lot when working with file system paths. Something I read today started me asking if it would work with URLs   It does:   £> Split-Path -Path ‘http://powershell.org/wp/forums/forum/windows-powershell-qa/’ -Leaf windows-powershell-qa £> Split-Path -Path ‘http://powershell.org/wp/forums/forum/windows-powershell-qa/’ -Parent http:\\powershell.org\wp\forums\forum   £> Split-Path -Path ‘http://powershell.org/wp/forums/forum/windows-powershell-qa/’ -NoQualifier //powershell.org/wp/forums/forum/windows-powershell-qa/ £> Split-Path -Path […]

under: PowerShell

There are four weeks left to register for the Summit if you are going to attend. Our numbers are moving in the right direction but we still need more registrations to make a 2015 Summit feasible.

under: PowerShell, Summit

DNS client settings

Posted by: | August 18, 2014 | No Comment |

Following yesterdays post there are a couple of other cmdlets worth looking at if you want to dig into the DNS settings on your client machines. Get-DnsClient wil show you the DNS relsted settings for all of your network interfaces by default.  To investigate a single interface   £> Get-DnsClient -InterfaceAlias vEthernet* | fl InterfaceAlias                     […]

under: DNS, Networking

Want to know the machines to which your machine has been connecting?   Try looking in the client DNS cache:   Get-DnsClientCache   will show a wealth of useful data.  All in the form: £> Get-DnsClientCache | where Entry -like ‘*www.intelliweather.net*’ | fl * TTL                   : 39 Caption               : Description           : ElementName           : InstanceID            : […]

under: DNS, Networking, PowerShell


Posted by: | August 14, 2014 | No Comment |

I was asked about foreach today and responded with a description of who foreach-object works. Thinking about it I should have realised that part of the issue with foreach is the confusion that arises between foreach and foreach – -  that is the difference between the foreach PowerShell statement and the foreach alias of the […]

under: PowerShell Basics

Can it -whatif

Posted by: | August 12, 2014 | No Comment |

One of the nice things about PowerShell is that it can help you prevent mistakes. Many of the cmdlets that make changes to you system have a –whatif parameter that allows you to test your actions:   £> Get-Process | Stop-Process -WhatIf What if: Performing the operation "Stop-Process" on target "armsvc (1564)". What if: Performing […]

under: PowerShell Basics

Both Select-Object and Where-Object (referred to by their aliases of select and where from now on) are both used to filter data.   It is important to know the way these 2 cmdlets are used.   Where is used to restrict the objects on the pipeline to those where one or more properties satisfy the […]

under: PowerShell Basics

I need to create a virtual machine with CentOS 6.5 as the guest OS.   I clicked through creating the VM and discovered that the install wouldn’t work. Eventually tracked down the issues.   Keep the following points in mind as you create your VM: Create the VM as a generation 1 virtual machine Ensure […]

under: Virtualization, Windows 2012 R2

« Newer Posts - Older Posts »