This is the next part detailing how the script here works. The first part detailed the rough design of the script and the main function that creates the transaction objects that are passed through the script.
This part adds some sample Task functions and the main body of the script to kick it all off. Continue reading “PowerShell: A Simple Batch Processing System, Part 2”
Hi. I’ve written a few scripts that have gotten to be quite large. In all cases they’ve needed to make a series of changes to a set of objects and log the results. It’s normally important that some of the later changes only get made if the earlier ones are successful; for example only changing the default SMTP address on a mailbox if another SMTP address was added earlier.
This series of posts will go into a decent system I’ve found for accomplishing this with some skeleton examples that are (hopefully!) easy to adapt. Continue reading “PowerShell: A Simple Batch Processing System, Part 1”
This is the skeleton of a Batch Processing System (Importing from a CSV file, performing consecutive tasks that are dependant on the previous task completing and then outputting the result).
I detailed how it works in Part 1 here and in Part 2 here. Continue reading “PowerShell: A Simple Batch Processing System”
The following is a simple script to generate a mailbox size report CSV for a set of email addresses. The full function and explanation follows.
Continue reading “PowerShell: Create a CSV Report of Mailbox Sizes”
One of the many Sisyphean tasks my wife performs is keeping the all the metadata tags of our digital photographs up to date. She meticulously keeps tabs on the tags she’s used but with the sheer number of photos, new photos being added and the children starting to take photos too it’s a pretty time-consuming task.
So; what she needs is a list of all the tags used on each picture file (including ones missing with tags) in an easily sortable format.
Being the caring husband that I am I started spending some time solving that problem with PowerShell.
Of course, she might have been happier with me doing all the ironing for a week so she can focus fully on sorting the pictures out but this is a) more efficient and b) a solution that she can re-use (teach a woman to (photograph) fish etc) and so is a better use of our time.
At least, that’s my excuse and I’m sticking to it. Continue reading “PowerShell: Querying, Formatting and Exporting Tags on Picture Files”