MediaInfo and PowerShell
- Details
- Category: Powershell
- Written by Winfred de Kreij
It is possible to use MediaInfo in PowerShell, by specifying the parameter --Output=XML and loading this into a XML Object, like this:
Full code after the break:
Disable IP Binding for the HP System Management Homepage
- Details
- Category: Powershell
- Written by Winfred de Kreij
If IP binding is enabled for HP System Management Homepage (which is used to manage HP Proliant Servers), it can by default only be accessed from the server itself, because it binds to 127.0.0.1. In order to disable this, I've written a PowerShell function that can disable IP binding remotely and for multiple servers. It uses xmlobjects and get-service.
Read more: Disable IP Binding for the HP System Management Homepage
PowerShell Disable Overrides in SCOM
- Details
- Category: Powershell
- Written by Winfred de Kreij
Example on how to enable or disable overrides in SCOM.
Multiple simultaneous defrag jobs with PowerShell
- Details
- Category: Powershell
- Written by Winfred de Kreij
There is some code out there that shows how to do defrag hard disks using WMI. Basically:
Of course, this can take quite some time when running this against a list of servers, since .Defrag() does not start on the second computer, until it completed the first. You can avoid this (assuming you have PowerShell 2), by using start job:
Full code after the break.
Read more: Multiple simultaneous defrag jobs with PowerShell
Wikipedia Image Scraper
- Details
- Category: Powershell
- Written by Winfred de Kreij

