Shrink Direct Access Database using PowerShell.

Shrink Direct Access Database using PowerShell.

We recently ran into an issue where the a system was running out of space on the system-drive. After initial investigation we've discovered that Direct Access Database Windows Internal Database was consuming a lot of drive-space on a system-drive. Below I will explain how to shrink Direct Access database In…continue reading →
Getting started with AppVeyor.

Getting started with AppVeyor.

AppVeyor is a Continuous Integration and Continuous Deployment tool that's aimed for .NET developers. In this blog-post I'll take you through the basics for setting up your first Project. We will be building, testing and deploying a PowerShell Module to the PowerShell Gallery using AppVeyor and GitHub. Getting started. Before…continue reading →
Faster Dir Size calculations in Powershell!

Faster Dir Size calculations in Powershell!

Get-ChildItem is probably the command that's most used when working in PowerShell console. Next to file-system operations the command is also excellent to browse objects accessible via PSDrive(s). Most sysadmin's are probably familiar with tools such as TreeSize and/or WinDirStat. Did you ever wonder why these tools are so much…continue reading →
Powershell 5: collection is read-only.

Powershell 5: collection is read-only.

Powershell 5: An error occurred while creating the pipeline. Today I was working with a Server 2016 TP5 server over PSR and I ran into this issue with one of my scripts: [crayon-59c58eb7891f5333193306/] This script has been working fine on other systems so far so I was a bit confused.…continue reading →
Text-to-Speech (TTS) fun with PowerShell!

Text-to-Speech (TTS) fun with PowerShell!

Pre X-Mas fun in the office. A colleague of mine pointed me to the "Bastard Operator From Hell"-Style Excuses generator. We figured it might be fun to use Text-to-Speech (TTS) to read-out random excuses or, if you down for it, some isults. Using Text-to-Speech in Powershell Using Text-to-Speech in PowerShell…continue reading →
How to kill a service stuck in pending state.

How to kill a service stuck in pending state.

WinRM 'StopPending' issues Recently I logged into a machine and ran 'Enable-PSRemoting -Force' to end up with error code '2150858770'. WinRM service was in 'StopPending' state: [code language="powershell"] PS C:\Windows\system32> Enable-PSRemoting -force WinRM has been updated to receive requests. WinRM service started. Set-WSManQuickConfig : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150858770" M achine="blabla.local"><f:Message>The client…continue reading →
Bash on Ubuntu on Windows! YES!!

Bash on Ubuntu on Windows! YES!!

On March 30th 2016 Microsoft announced that they are partnering with Canonical to bring Bash to Windows 10. The companies worked together on creating a Linux-subsystem that runs on Windows-libraries. When I read the news I was very exited. Some things that I love on Linux just aren't as good…continue reading →
Powershell: Colorizing Get-Childitem

Powershell: Colorizing Get-Childitem

So, you are jealous about those Linux colleague's using fancy colors in their terminal? Now you can do too! Powershell has been supporting colors since version 1.0. For a list of named colors I suggest you check out this TechNet article. Back to the topic, you want to colorize your…continue reading →
  • 1
  • 2