Example #1
0
        internal static string CreateVirtualMachine(this ManagementScope scope, string name)
        {
            var system = scope.DefineSystem();

            var vmIdentity = (string)system["name"];

            scope.SetVirtualMachineName(name, vmIdentity);

            return(vmIdentity);
        }