Create a sharepoint (document) library

Creating a sharepoint library (works in both sharepoint foundation and sharepoint server) with powershell is a nice way to ensure all libraries within sharepoint are configured the same way. What we'll be doing here, is creating a library, disable anonymous access on it and only allow certain user groups to have access rights to this … Continue reading Create a sharepoint (document) library

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