Have you been talking to strangers?

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

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...
Can it -whatif

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...
Select-Object or Where-Object

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...
Installing Centos in Windows 2012 R2 Hyper-V

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

A WMI troubleshooting series has been started on the Ask the Performance Team Blog. The overview article is:
Euorpean PowerShell Summit 2014 registration details

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
Invoke-Item tips

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...
ServerManagerTasks module – – Get-SMServerFeature

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 ...
European Summit – – update 6

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