Extracting GUIDs from a bunch of text

As part of messing with Windows Performance Recorder profiles, I had a need to extract everything that looks like a GUID from a blob of text. So I wrote this script. It digs through its STDIN and outputs all the GUID-looking things, uppercase-ized and sorted. https://github.com/mvaneerde/blog/blob/master/scripts/extract-guids.pl

1

Getting the schema for Windows Performance Recorder profiles

I was having some trouble authoring a Windows Performance Recorder profile by hand-editing the XML, and I wanted to check it against the schema. This MSDN page says “you can get the WPRControlProfiles.xsd file in %ProgramFiles(x86)%\Windows Kits\8.1\Windows Performance Toolkit”. That appears to no longer be true. I dug around a little and eventually found it. It’s…

2