-
I saw a good question the other day in the PowerShell.Com Learn PowerShell Forum which related to using –Include when calling Get-ChildItem (or DIR, or LS!). The OP had a bunch of files in a folder (C:\Data) and wanted to get at just the *.txt files as...
-
< # .SYNOPSIS This script defines a function that tests to see if a file is open. .DESCRIPTION This script used the System.Io.FileStream class and the FileInfo class to try to open...
-
The other day I came across a PowerShell question on StackOverflow about testing if a service was running on a group of machines.This sparked an idea for a tool to “ping” a service, in much the same way we ping … Continue reading →...
-
We’ve seen a few things we can do with the WMI provider for Active Directory. One of the most useful is testing replication function test-replication { [ CmdletBinding ( ) ] param ( [string] $computername = $env:COMPUTERNAME ) Get-WmiObject -Namespace...
-
I have added another module to the PowerShell Admin Modules - http://psam.codeplex.com/ Release 0.7 adds a PAMHostsFile module with the following members add-hostfilecontent add-IPv6hostfilecontent clear-hostfilecontent get-hostfilecontent remove...
-
Like all sporting events you need to train before participating – as part of your training follow the links on the sites in my previous post http://msmvps.com/blogs/richardsiddaway/archive/2012/02/04/scripting-games-2012-link-page.aspx and also use these...
-
The 2012 Scripting Games were announced http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/30/scripting-guys-announce-the-2012-powershell-scripting-games.aspx They will start on 2 April – with events released to schedule after that. The usual...
-
I will be doing a private #PowerShell training class in Canberra, Australia in March. Since it is a long trek I’d love to add a second week of work, either training or speaking. I had a second training gig lined … Continue reading →...
-
I use hash tables quite a bit and with the impending arrival of PowerShell 3.0 I expect even more so. PowerShell v3 allows you to define a hash table of default parameter values. I’m not going to to cover that … Continue reading → Read...
-
Ever since PowerShell v3.0 CTP build got released, I am using ISE as my primary script editor. I keep changing preferences such as colors, etc. The new feature in ISE v3 remembers the changes made to ISE options. While this is quite useful, sometimes...
-
Arrangements for this event in Helsinki are moving along nicely. Those very nice people at Sovelto, who are hosting the event, have put up a new web page around the event: see http://www.sovelto.fi/kurssit/Pages/PowerShell-PowerCamp.aspx (or to see this...
-
Today I gave an Live Meeting presentation for the PowerShell Virtual User Group. When the recording is posted I’ll update this post. I spoke about new features in Windows PowerShell 3.0 that I think will make it easier for people … Continue...
-
A few days ago Boe Prox posted some very nifty PowerShell modules for using the title bar as a ticker for RSS feeds like the weather. I thought this was an awesome idea and an easy way to take advantage … Continue reading → Read More...
-
The 2012 PowerShell Deep Dive has been announced - April 29 – May 2 in San Diego. http://blogs.msdn.com/b/powershell/archive/2012/01/27/it-s-time-for-another-powershell-deep-dive.aspx This time PowerShell is a full track so expect more of...
-
Recently I was tracking down a bug in script for a client. The problem turned out to be a simple typo. I could have easily avoided that by using Set-StrictMode, which I do now, but that’s not what this is … Continue reading → Read More...