powercommands

What causes Visual Studio 2008 SP1 to crash when switch to Design View of a WPF application

After developing a WPF application without Source Control, I decided to add the solution to TFS. After doing so whenever I opened the main window.xaml file in Design View Visual Studio would disappear and the following event would be logged in the Application Event log: .NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Er...

Using powercfg to duplicate the currently active power scheme

I need to run a batch file, with a series of powercfg commands to duplicate the currently active scheme and rename it. Manually, I would do something like this at the command prompt. powercfg -getactivescheme This would give me the GUID of currently active scheme. powercfg -duplicatescheme <GUID obtained above> <new GUID> Ideally,...