More information plus registration details from...
PowerShell V2
Can I? Should I?
The question “Can I do X with PowerShell?” comes up very frequently. PowerShell provides access to a huge range of functionality: .NET COM WMI...
Testing the statistics functions
To enable repeatable testing of the statistical functions I’m creating I decided to create a test script. $data1 = @( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8...
Calculating the correlation coefficient
This measures the degree of dependence between two sets of values - +1 indicates perfect positive correlation 0 indicates no correlation -1...
Working with strings: bits and pieces
In the previous post I showed how to generate the parent OUs by splitting and rejoining a string. I used the operators –split and –join These were...
Working with strings: I’m a substitute
PowerShell string substitution is a very neat trick PS (1) > $string = "World" PS (2) > "Hello $string" Hello World ...
Working with strings: likes and dislikes
Lets start with a string $str = "abcdefghi" We often only have part of a string to work with so we end up using –like $str -like...
AN easier clock
In this post http://msmvps.com/blogs/richardsiddaway/archive/2011/07/07/a-powershell-clock.aspx I showed how to use xaml and WPF to create a...
A PowerShell clock
I don’t do much with Windows forms as the vast majority of what I do is at the admin end of the PowerShell spectrum. Every now and then I like to...
Changing a network address
One task that comes up from time to time is changing the network address on a system. The subnet may be the same but we need to change the last...
Yes I’m sure
One of the great safety features of PowerShell are the –whatif and –confirm parameters on cmdlets. They can really be useful in preventing hideous,...
Computer Report VI: the end
Now that we have our report generation functions we can create a wrapper function that calls them function get-report { [ CmdletBinding ( ) ] param...
Computer Report V: netstat
The last part of the puzzle is to deal with netstat. netstat -an can be run like this $computer = "localhost" Invoke-Command -ScriptBlock...
Testing WSMan
The winrm service is essential to PowerShell remoting. If it isn’t running you can’t remote. If we have problems with remoting we could use...
Using add-member
In the first of the series on generating a computer report - http://msmvps.com/blogs/richardsiddaway/archive/2011/07/01/computer-report.aspx I used...
PowerShell web cast by Don Jones
Combining Output from Multiple Sources Webcast: Combining Output from Multiple Sources REGISTER NOW July 6, 2011, 12pm CST Presented by: Don Jones...
IE history to CSV
Back in April last year I wrote a post about viewing IE history http://msmvps.com/blogs/richardsiddaway/archive/2010/04/13/ie-history.aspx I had a...
Modifying favourites
if we use our get-favourite function to look at the content of favourite files get-favourite | select -f 5 | foreach{"";...
Tidying up the favourites list
I recently showed how to generate a list of the favourites recorded on your system...
Windows Updates: remote machines
My main blog is now at http://msmvps.com/blogs/RichardSiddaway/Default.aspx but I also maintain http://richardspowershellblog.wordpress.com/...
Read the Scripting Guy Blog
I had the pleasure of meeting Microsoft’s Scripting Guy, Ed Wilson and his charming wife at the recent PowerShell Deep Dive. As well as being very...
Viewing favourites
I recently copied my favourites between machines which started me thinking about viewing favourites. Like many people I have generated a lot of...
PowerShell basics: using Get-Content to drive a copy
I recently saw a forum question about copying files where the file names where in a file Icreated a file with the full path to the files that need...
Colour highlighted code in posts
I’ve been having a bit of difficulty getting code highlighted code into my posts recently. I use Live Writer to publish the posts and I was using an...