PowerShell for Windows Admins:

PowerShell


August 21, 2014  2:04 AM

Learning, always learning

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Books, PowerShell

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

August 20, 2014  10:19 AM

Count property

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
PowerShell

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


August 20, 2014  7:49 AM

Split-Path serendipity

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
PowerShell

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 '


August 18, 2014  12:57 PM

European Summit countdown #1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
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.


August 18, 2014  12:53 PM

DNS client settings

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
DNS, PowerShell

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


August 17, 2014  1:02 PM

Have you been talking to strangers?

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
DNS, PowerShell

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


August 14, 2014  2:01 PM

foreach

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
PowerShell

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


August 12, 2014  10:29 AM

Can it -whatif

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
PowerShell

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


August 11, 2014  1:44 PM

Select-Object or Where-Object

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
PowerShell

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


August 10, 2014  2:51 AM

WMI troubleshooting

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, PowerShell, WMI

A WMI troubleshooting series has been started on the Ask the Performance Team Blog. The overview article is: Bookmark and Share     0 Comments     RSS Feed     Email a friend


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: