Get Cluster Shared Volume (CSV) free space with PowerShell
With the failover cluster manager it’s hard to summarize the free space for each CSV. Here is a sample script to determine the free space for the Cluster Shared Volumes in each Hyper-V...
View ArticleCreate test alert in SCOM
There is no standard feature in SCOM to generate a test alert, which can be needed to test a mail subscription. For SCOM2007 there is a simple tool to generate test alerts. Too bad that this tool...
View ArticleCompact Dynamic VHDx file
There are many ways to compact a VHDx file. It can be done using SCVMM, Hyper-V manager or even diskpart. In my situation the compact option doesn’t reduce the size, it was even bigger than before the...
View ArticleMonitor VMM Job using PowerShell
In SCVMM there is no option to send a mail when a job is completed. This can be archived with PowerShell. Here is an simple example script to monitor the SCVMM Job status:import-module...
View ArticleAdd VM to VEEAM Backup job using PowerShell
I created a simple PowerShell function to add VM’s in a VEEAM backup job. This script has 2 options, enable indexing and/or application aware processing per object. There are many more possibilities...
View ArticlePowerShell Rest API programming
With the PowerShell invoke-restmethod command it’s possible to interact with a REST based API. In the following script I’ve added a couple of examples how-to interact with methods as GET and POST. Add...
View ArticleDebug SCOM Agent
Sometimes it’s unclear what the error messages are when the SCOM Agent is running an VB or PowerShell script. Or the event-log messages say nothing about the issue you actually facing. In this...
View ArticleMonitor JEE Java applications with SCOM
It’s possible to monitor the mbeams provided by the java engines with SCOM. Out of the box SCOM Doesn’t discover these applications automatically. There are some more steps needed to complete this. The...
View ArticleAccess to the registry key ‘HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup...
There are two ways to solve this: 1. Run VEEAM PowerShell always as Administrator 2. Change the permissions of the following registry key: \\HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and...
View ArticleCreate PowerShell monitor SCOM
With scripts you can monitor almost everything in SCOM. Out of the box SCOM uses mostly VBScript instead of PowerShell, because it works on all Windows versions. I prefer PowerShell above VBScript, so...
View ArticleGet external IP Address using PowerShell
In some cases it can be useful to check your external IP Address within a PowerShell script. So I created this little script:$content = Invoke-WebRequest -Uri http://myip.world $co =...
View ArticleGet PowerShell version
Sometimes you need to check the PowerShell version of your Windows System, to get the PowerShell version you need to open a PowerShell prompt (taskbar type PowerShell). This information is contained in...
View ArticleHow to: Create Nano server image
With Server 2016 TP5 available today, we want to test it by ourselves. First; how-to deploy a Nano server image. Download the server 2016 ISO and mount it. Launch PowerShell as Administrator. Copy Nano...
View ArticleThe WinRM client cannot process the request. If the authentication scheme is...
When a computer is not a domain member and there are no SSL Certificates available for HTTPS. You must change the trusted hosts on the client side. Run: gpedit.msc Then: Computer Configuration ->...
View ArticleManage Microsoft Azure with PowerShell
Today I finally activated my free trial subscription on Microsoft Azure. This gives me the possibility to play around with all the nice Azure features. After playing around in the GUI I wanted to start...
View ArticleMigrate Hyper-V Virtual machine to Azure
In this post I will describe how to migrate virtual machines to Azure without Virtual machine manager. My setup: Hyper-V host: On-premise Hyper-V Server with VM’s on it. Azure site recovery agent: The...
View ArticleVeeam Backup free
Veeam delivers powerful backup software for backup your virtual or psychical servers (veeam endpoint). The backup method for VMWare or Hyper-V virtual systems is agentless. There is no need to install...
View ArticleExchange backup VEEAM
Veeam Backup and Replication gives the possibility to create a consistent backup from your Exchange farm. This can be a standalone Exchange system or an Exchange DAG cluster. It makes use of the...
View ArticleSCOM 2016
With the release of SCOM (System Center Operations Manager) 2016 Microsoft released a new version of SCOM. The look and feel of SCOM is almost the same as the 2012 version. Of course Microsoft add a...
View ArticleDisable insert key PowerShell
I hate the annoying insert key on my keyboard. Therefore, I found a way to disable the key within the Windows registry. It is very easy to insert this key with PowerShell so you can automate this when...
View Article