In the last part we wrote out the Powershell to handle the parameters (including some crude validation) and for the skeleton of the rest of the script. In the next few parts we’ll define the functions the script will use. The full script can be found here.
Powershell Archiving Script, Part 3
In this part we’ll start writing some Powershell. Initially we’ll write about the function call and function structure (see below). The full script can be found here. Continue reading “Powershell Archiving Script, Part 3”
Powershell Archiving Script, Part 2
Or, A Cunning Plan for Archiving.
The first thing to do is a quick brain-dump of things I want the script to do. From that I should be able to get a better idea about how I want it to work.
So in no particular order here is a list of all the elements I want in the script;
Powershell Archiving Script, Part 1
A script to archive items between fast storage (SSD) and slow storage (mechanical hard-disk) using symbolic links to make the location of the files transparent to the OS. A solution to Steam games flooding my C:\ drive!
That should be pretty easy, right?
Creating A Powershell Profile Script
Your Powershell profile is a .ps1 (Powershell script) that’s automatically run whenever you start a new Powershell command prompt. You can do all sorts of customisation but possibly the best use for it is to add functions you’ve created yourself so they’re available at the command line. This post shows how to create it.
Converting American Express PDF Statements to CSV with Powershell
Gah. Importing accounts into accountancy programs can be tedious. What makes it more tedious is when banks make life even more difficult. American Express allows you to download statements in nice CSV formats though.
Yay!
Except if the statement is older than 6 months, then you have to download it as an non-formatted PDF.
Boo.
Continue reading “Converting American Express PDF Statements to CSV with Powershell”
Reboot Router Automatically when the Internet Disconnects
So; if you’re going to be going away for 3+ weeks and need your Internet to stay up. What if the router needs a reboot or it goes haywire? Needless to say you can’t do it remotely if the Internet is unavailable (actually, there are some cool power-sockets that can cycle the power when they get an SMS text to an installed SIM card).
Here’s a solution I came up with;
Continue reading “Reboot Router Automatically when the Internet Disconnects”