From Snippet Compiler to .NET Fiddle for C#

Time ago I used often a good IDE to interpret small C# snippet to write on the fly without Visual Studio. That good app was Snippet Compiler  by Jeff Key that support Framework 3.5 and is not more upgraded.
There is a good replacement on code.google.com: Sharp Snippet Compiler

Recently I discovered a new replacement to write small piece of code. It is .NET Fiddle (https://dotnetfiddle.net/). It is web browser based and supports also 4.5 .Net Framework. You can also login and use Collaboration feature to work together friends.

Converting Gen1 to Gen2 Hyper-v virtual machine

This is my experience converting some VM on Windows 8.1 from Generation 1 to Generation 2. I had some VM with Windows 8.1 as guest operating systems. I found a nice tool to make the whole conversion process : Convert-VMGeneration utility

It is a powershell script working quite well. This is the procedure I have done:

download and save the powershell file in the folder C:\script

Login in the guest VM and in a Command Prompt (Admin) window run this command:

reagent /disable

That command avoid to get the following error :

WinRE is configured. Run reagentc /disable inside guest first, or use IgnoreWinRE parameter
Completed with error. Trace status code 700

In the Host computer open powershell and move on the C:\script directory and run the following command where Win8-Test5 is the VM name and C:\Hyper-V is the folder where are located the VMs:

.\Convert-VMGeneration.ps1 -VMName Win8-Test5 -Path C:\Hyper-V -OverwriteVHDX

If all goes well you get the following messages:

Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially ha
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warnin
message. Do you want to run C:\script\Convert-VMGeneration.ps1?
[D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is “D”): R

Hyper-V Generation 2 Virtual Machine Conversion Utility. Version 1.04, 6th Dec 2013.
John Howard, Hyper-V Team, Microsoft Corporation (http://blogs.technet.com/jhoward)
http://code.msdn.microsoft.com/ConvertVMGeneration

INFO:    Locating virtual machine ‘Win8-Test5’…
INFO:    Validating virtual machine configuration…
INFO:    Identified boot disk is ‘C:\Hyper-V\Win8-Test5\Virtual Hard Disks\Win8-Test5.vhd’
INFO:    Source drive letters are F G
INFO:    Found Microsoft® Windows® Operating System 6.3.9600.17031 (winblue_gdr.140221-1952) x64 at G:\windows
INFO:    Creating ‘C:\Hyper-V\Win8-Test5 (Generation 2)\Win8-Test5 (Generation 2).vhdx’…
INFO:    Disk 2 is mounted. Allocated drive letters are Y: and Z:

Warning – Loss of data
CONTENT ON DISK 2 IS ABOUT TO BE DESTROYED.

Verify this maps to ‘C:\Hyper-V\Win8-Test5 (Generation 2)\Win8-Test5 (Generation 2).vhdx’ in disk management
(diskmgmt.msc) or diskpart.exe before confirming.
Your confirmation accepts full liability for accidental data loss due to coding errors or otherwise.
[N] No  [Y] Yes  [?] Help (default is “N”): Y
INFO:    Preparing disk…
INFO:    Capturing image. This will take some time…
INFO:    Image captured to C:\Users\Moreno\AppData\Local\Temp\TEMP-2014-11-05 08-02-59 captured.wim
INFO:    Applying image. This will take some time…
INFO:    Configuring ‘Win8-Test5 (Generation 2)’. Baseline configuration from ‘Win8-Test5’…
WARNING:  – Ignoring DVD drive at IDE 1:1 with no media.
INFO:     – Memory…
INFO:     – Processors…
INFO:     – Storage…
INFO:     – Notes…
INFO:     – Integration Services…
INFO:     – Start/stop actions…
INFO:     – Networking…
INFO:     – Boot order…

SUMMARY:
· Virtual machine ‘Win8-Test5 (Generation 2)’ was created.
· Boot disk is ‘C:\Hyper-V\Win8-Test5 (Generation 2)\Win8-Test5 (Generation 2).vhdx’.
· Configuration was cloned from VM ‘Win8-Test5’.

WARNING: Completed with 1 warning. Trace status code 1597