Tag Archives: convert

Use VLC to convert M4A to MP3 one-liner

I recently needed to convert a load of M4A audio files to the more widespread MP3 format. It turns out you can do this with VLC media player. So then it was just a matter of getting the right command … Continue reading

Rate this:

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Create a PFX file from separate private and public key certificate files

Whilst installing ADFS I needed to import my wildcard certificate. This proved fiddly as Microsoft need it to be in pfx format, and I only had separate private .key and public .crt files. PFX is a Microsoft certificate format that combines the … Continue reading

Rate this:

Posted in Security, Windows | Tagged , , , , , , , , , , , , , | 4 Comments

Convert Hyper-V VM vhdx to VMware vSphere vmdk

This turned out to be pretty simple, if pretty slow. I was converting from a Hyper-V 2012 R2 VM into vSphere 5.0. The VM itself was also running Windows Server 2012 R2. There are a few steps and points to … Continue reading

Rate this:

Posted in Hyper-V, Storage, vSphere, Windows | Tagged , , , , , , , , , , , , , | 2 Comments

PowerShell: Add users to Active Directory

Quickie script to add a load of users to Active Directory. This was to generate a set of test users, so the account settings are rather scarce. You have to convert the password text string to data type System.Security.SecureString, which I’m … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , , , , , | Leave a comment

PowerShell: Working with XML

PowerShell seems to have two built-in ways of dealing with XML: Clixml The first is to use the Export-Clixml and Import-Clixml cmdlets. These are an easy way to save and load PowerShell objects for later use. For example, if you have … Continue reading

Rate this:

Posted in PowerShell, Windows | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments

PowerShell function to convert WMI Event Log date and time to datetime data type

PowerShell likes to hold dates and times as the DateTime data type. This enables you to do useful things with it such as maths, easily pick out bits of it (e.g. just the date ignoring the time, just the hour, … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , | Leave a comment

vSphere: Convert RDM to VMDK and vice-versa on Windows VM with no downtime

This method will work for non-OS disks (so not your C drive), and will not require the server or application to go down during the process. You need a version of Windows that supports software RAID, which includes all versions … Continue reading

Rate this:

Posted in Storage, vSphere, Windows | Tagged , , , , , , , , , , , , , , , | 6 Comments

PowerShell: Scan subnet for dead addresses

Quick script to scan a range of addresses on an IPv4 subnet and report ones that don’t ping, additionally doing a reverse DNS query on those IP addresses to try and get their names. I’m doing two pings, as I … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , , , | Leave a comment

Upgrade PST files to Unicode and run ScanPST from the command line

Identified an issue with old PST files that started to misbehave when Microsoft Office was upgraded to 2010. PST files created by Outlook 97, 2000 or XP are stored using ANSI, whereas the ones created by Outlook 2003, 2007, and … Continue reading

Rate this:

Posted in Applications, Outlook, Scripting | Tagged , , , , , , , , , , , | 1 Comment