PowerShell: Display A Menu And Get a Valid Choice

While it’s normally best practice to not display anything on the host and to batch as much as possible with PowerShell; sometimes you need a UI.  Here’s a pair of functions to display a menu on the screen, automatically number the possible responses and only return when a valid choice is made. Continue reading “PowerShell: Display A Menu And Get a Valid Choice”

PowerShell: Synchronizing a Folder (and Sub-Folders) Part 10

Hi.  In this part I add some text logging to the script.  Not much else I can say really 🙂 Continue reading “PowerShell: Synchronizing a Folder (and Sub-Folders) Part 10”

Fixes for the Steam Stuck at a Blank Screen Issue

This has been broken for me for months, but recently I found a fix.  Using the Steam application, all you can do is browse your library.  The store, community, forums etc;  all don’t work.  If you use Big Picture mode, everything is great.  If you use a normal browser, everything is great.

Steam though?

B0rked.

Steam support gave up after a couple of suggestions.  But after working through many possible fixes, I worked out what was wrong. Continue reading “Fixes for the Steam Stuck at a Blank Screen Issue”

PowerShell: Tutorial 2, “Teach a Man to Fish” or Working Out The Command You Need

A series of tutorials, or How To Get Started With PowerShell:  “It’s Awesome” edition.

The title was originally built around “Teach A Man A Cmdlet and he PowerShells for a day;  Teach a Man to Use Get-Command and he PowerShell’s for a lifetime.”  But it got more and more clumsy and convoluted so I finally decided that there really was a limit to my own cleverness.

PowerShell really is quite clever though and makes it really easy to work out the cmdlets you want to use for any task. Continue reading “PowerShell: Tutorial 2, “Teach a Man to Fish” or Working Out The Command You Need”

PowerShell: Export All Exchange Mailbox Folder Permissions In A Format For Further Processing: Part 2

This is an update to my function to extract Mailbox folder permissions as PowerShell objects, allowing various forms of processing.

The main script is here.

In this update I’ve made the function skip some default folders it can’t process, treat the root of the mailbox better and improved the logging.

Continue reading “PowerShell: Export All Exchange Mailbox Folder Permissions In A Format For Further Processing: Part 2”

PowerShell: Synchronizing a Folder (and Sub-Folders) Part 9

Hi. Here’s another update on the Sync-Folder script. The script itself is at that link but in this post I go over the changes I made and how they work.

The main addition is the support for -WhatIf (so you can test the script runs without it making changes).  In addition I fixed some odd bugs with the Filter and Exceptions parameters.  Plus some more Verbose logging and I tidied up the script a bit (removing some of the cmdlet aliases and replacing them with the full commands). Continue reading “PowerShell: Synchronizing a Folder (and Sub-Folders) Part 9”

PowerShell: Tutorial 1, Everything is an Object

A series of tutorials, or How To Get Started With PowerShell:  “It’s Awesome” edition.

When I thought about what I considered the most important, fundamental thing to learn about PowerShell I went through a couple of options;  Piping?  The help system and Get-Command?  -WhatIf?

All useful things to learn but it has to be how everything in PowerShell is an object.  It’s how you can build Really Cool Stuff from lots of simple bits and it’s also the thing that catches me out occasionally. Continue reading “PowerShell: Tutorial 1, Everything is an Object”