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-59c58ba7757cf027347990/] 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 →
Write-Progress... The proper way!

Write-Progress... The proper way!

Write-Progress Issues. So, you wrote a script and included nifty progress bar, fairly simple. BUT your script runs slow, especially in a Powershell terminal. Relevant part of the script: [crayon-59c58ba775bda107078803/] Oke, you run it in ISE, wrapped in Measure-Command to time the performance and.... [crayon-59c58ba775be0577814130/] 1406 Milliseconds! That's not to…continue reading →
  • 1
  • 2