Use text to speech to read the hardest poem in the English language

Some years ago I came across one of the hardest poems in the English language, and since I've been playing with the text-to-speech engine I decided to let the text-to-speech deal with the poem. It seemed to do very well and tought me how to pronounce some words I had never heard of as well. … Continue reading Use text to speech to read the hardest poem in the English language

Text to speech alarm clock with powershell

Thanks to a blog by Jefferey Hicks about an alarm clock in powershell using the PC speaker, I thought it would be nice to tweak that script a little bit and use Microsoft's text to speech engine so you can use the alarm and let a voice wake you through your headphones or speakers. To … Continue reading Text to speech alarm clock with powershell

Get current cpu usage for a process

I wanted to get the current CPU usage for certain processes, which appeared to be harder than I thought. The Get-Process command will give you CPU time and program start time, but will not tell you when the CPU was being used by the process. Thus if you use the previous information you got from … Continue reading Get current cpu usage for a process

Get logged on users and sessions

There are several ways to get a list of currently logged on users on a system, but only a few return the things that I like to know. In case of my servers, I'd like to know which users are connected to which session. One way to do so is by: Import-Module RemoteDesktop Get-RDUserSession but … Continue reading Get logged on users and sessions

Writing to Excel

Background About a year ago I started writing things to Excel with PowerShell, based on the information I found on an MSDN blog - Create Excel file with PowerShell I wasn’t quite satisfied, though. I wanted some more formatting (specifically: change the top row behavior). It was somewhat frustrating to not be able to get … Continue reading Writing to Excel

Get-Date

The Get-Date cmdlet is pretty nifty and gives you a lot of date/time formats you'd want to use in your script. Like if you were to save files with a unique stamp, you'd want a date/time format like <year><month><day><hour><minute><second> Here are some examples to achieve this goal, with outputs Get-Date -Format s 2015-11-19T20:22:35 (Get-Date -Format s).Replace("-","").Replace(":","").Replace("T","") … Continue reading Get-Date

Create Windows scheduled task (for the NppUpdater script)

Create Windows scheduled task (for the NppUpdater script) The previous NppUpdater script doesn't do anything without it being scheduled in the task scheduler. So I thought I also release a script to you, which does just that. If you add the code in this script to the NppUpdater script, it'll also create the scheduled task … Continue reading Create Windows scheduled task (for the NppUpdater script)

Notepad++ downloader and updater

I love to use Notepad++ (npp), but I also have npp installed on servers on which users can log on, but don't have administrative privileges. They also love to use npp, but with the updater enabled, they get popup messages for the updates, but cannot install them. I don't want to have to check all servers that I … Continue reading Notepad++ downloader and updater