PowerShell for Windows Admins:

August, 2014


August 17, 2014  1:02 PM

Have you been talking to strangers?

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
DNS

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

I was asked about foreach today and responded with a description of who foreach-object works. Thinking about it I should have realized 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

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


August 11, 2014  1:44 PM

Select-Object or Where-Object

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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


August 10, 2014  6:07 AM

Installing Centos in Windows 2012 R2 Hyper-V

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Hyper-V 2012 R2, Virtualization

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:

  1. Create...


August 10, 2014  2:51 AM

WMI troubleshooting

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, WMI

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


August 10, 2014  2:34 AM

Euorpean PowerShell Summit 2014 registration details

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The European PowerShell Summit, organised by PowerShell.org, will be in Amsterdam September 29 - October 1 2014 at the Park Hotel. Details at 0 Comments     RSS Feed     Email a friend


August 6, 2014  2:18 PM

Invoke-Item tips

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Invoke-Item is another cmdlet that you don’t see used that often but there is one place where its invaluable – opening files. If you give Invoke-Item the path to a file Invoke-Item -Path .\procs.txt The file will be opened with the default application associated with that extension. In...


August 5, 2014  12:42 PM

ServerManagerTasks module – – Get-SMServerFeature

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, WMI

Finding the Windows features installed on a remote machine can be an interesting task. You could use Get-WindowsFeature but that gives you a “graphical” display: £> Get-WindowsFeature | where DisplayName -like '*DNS*' Display Name        ...


August 4, 2014  2:09 PM

European Summit – – update 6

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

As pointed out on PowerShell.org - http://powershell.org/wp/2014/08/03/powershell-summit-europe-2014-status/ – we’re around...


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: