Fix: Battery Icon and/or Volume Control Missing From Windows 10 Taskbar

I came across a rather weird problem today where my taskbar was missing the icons for the volume control and battery meter: My first attempt to fix this was to check the related system settings: Open the run dialog (Windows-key + R) and type 'ms-settings:notifications' Click on 'Turn system icons on or off' In my … Continue reading Fix: Battery Icon and/or Volume Control Missing From Windows 10 Taskbar

Using PowerShell to clean-up excel data with multiple entries per cell

How many times did you come across a situation where you were supposed to work with Data that looks like this?: Some of the cells have multiple entries that are either separated by comma or line-breaks (via Alt+Enter). Furthermore several of those entries contain extraneous spaces. Happy days! What would be actually needed in order … Continue reading Using PowerShell to clean-up excel data with multiple entries per cell

Add a default code template to the PowerShell ISE

Some of the 3rd party PowerShell editors offer already built-in support for a default code template where the content of the code template replaces the default blank sheet for every new tab as a starting point for new scripts. While the PowerShell ISE does not provide this functionality out-of-the-box, it can be quite easily added … Continue reading Add a default code template to the PowerShell ISE

PowerShell tricks – replace and transform a value within a string

Most PowerShell users know already of the String.Replace method and the PowerShell -replace operator. While the latter is quite powerful with its support for regular expressions ... : ... there is an even more powerful option available for cases where the characters that we want to replace need to be "transformed" in some way. Let's … Continue reading PowerShell tricks – replace and transform a value within a string

PowerShell Error – “Select-Object : Cannot convert System.Object[] to one of the following types…”

I came across a bug (at least I would assume this a bug) in PowerShell while using the Select-Object (alias select) cmdlet in conjunction with a mix of literal and variable arguments for the Property parameter (attempting to use Get-ChangeLog with a multiple column identifier). Select-Object's Property parameter accepts either an array of objects, or … Continue reading PowerShell Error – “Select-Object : Cannot convert System.Object[] to one of the following types…”

Search file content by keyword using Everything + PowerShell + GUI

Even with Windows 10 MS still didn't manage to include a proper in-built file search functionality. If it is about searching for files I definitely prefer the excellent Everything search engine (see also my post on a PowerShell wrapper around Everything commandline) .But quite frequently I also need to search for keywords/pattern within files. PowerShell's … Continue reading Search file content by keyword using Everything + PowerShell + GUI

Finding the index of an object within an array by property value using PowerShell

Today I was looking for an option to find the index of an object within an array of objects. Using an array of one dimensional objects like integers this is as simple as using the static IndexOf method of the Array class in the System namespace: But in my case I wanted to get the … Continue reading Finding the index of an object within an array by property value using PowerShell

PowerShell tricks – Build an array of strings without quotation marks

This is one of the tricks I keep forgetting about and therefore document it here for myself but also in case someone else might find it useful. In order to create an array of strings one usually does something like this: It involves quite some redundant characters in order to do a simple thing. This … Continue reading PowerShell tricks – Build an array of strings without quotation marks