-
The TechEd Australia PowerShell conference starts tomorrow at midnight UK time (9am in Australia). Details from http://msmvps.com/blogs/richardsiddaway/archive/2011/08/22/teched-australia-powershell-conference.aspx I will be presenting on...
-
Tuesday August 30th 2011 at 9am EST there is a PowerShell conference at TechEd Australia. Details from http://powershelldownunder.com/featured/teched2011/ The sessions will be available via Live meeting please register at above URL Read More...
-
The last of the path cmdlets is Convert-Path. The Convert-Path cmdlet converts a path from a Windows PowerShell path to a Windows PowerShell provider path. I can’t remember using this one. Building on the examples in the help file we can expand...
-
Check www.manning .com for a half price deal on PoweShell books: PowerShell in Practice PowerShell and WMI PowerShell in Action Learn PowerShell in a month of lunches Hurry. Today only! Read More...
-
I normally start PowerShell in my c:\scripts directory PS> Get-Location Path ---- C:\scripts Get-ChildItem *.ps1 gives me the list of .ps1 files in that folder. Some of that information I may not need and it doesn’t give me the full path...
-
During our processing we get a path and a file we need to join together to produce the full path to a file. $path = "c:\scripts" $file = "test2.csv" One way that I saw a lot in this years Scripting Games is to use string concatenation...
-
One thing you may have to do is find the folder name of the container holding the file. This is the last folder on the path BUT you don’t know how long the path is. One possibility is to use a trick with array indicies PS> $path = "c...
-
Lets start with a file we now exists PS> Test-Path -Path c:\scripts\utils\accelerators.ps1 True By default we get the container when we use split-path PS> Split-Path -Path c:\scripts\utils\accelerators.ps1 c:\scripts\utils This is equivalent of...
-
From some recent feedback it seems that the *Path cmdlets aren’t as well known as I thought. PS> Get-Command *path | select name Name ---- Convert-Path Join-Path Resolve-Path Split-Path Test-Path We’ll start with test-path The Test-Path...
-
In this post - http://msmvps.com/blogs/richardsiddaway/archive/2011/08/07/top-processes-by-resource.aspx – I looked at wrapping the Get-Process cmdlet in a function so that we could always get the top N sorted by a number of criteria. I was asked if this...
-
How many times have you typed something like Get-Process | sort cpu -Descending | select -f 5 to full back the processes taking most CPU resources – or similar with any other of the process properties. After a while it gets tiring typing the same old...
-
As promised here is the function to delete mail items in a specific folder function remove-mailitem { [ CmdletBinding ( SupportsShouldProcess = $true ) ] param ( [ parameter ( Mandatory = $true ) ] [string] $mailfolder , [datetime] $start , [datetime...
-
Continuing our perambulation around Outlook when used with multiple hotmail accounts its time to look at the other folders and the mail items they contain. This post will show how to view the mail items and a future post will show how to delete items...
-
Last month I started playing with WPF to show how a multi-coloured clock could be displayed on screen. This was picked up and an easier version was created by Doug Finke using the ShowUI module from codeplex http://showui.codeplex.com/ . Other...
-
Getting back to looking at working with Outlook we can adapt the function used to deleted the contents of the Deleted Items folder to work with the Junk mail folders function clear-junkmail { $outlook = New-Object -ComObject Outlook.Application get-mailitemcount...