Beispiel #1
0
        public static void getvms(string[] tokens)
        {
            string server = Dns.GetHostName();

            if (tokens.Length == 2)
            {
                server = tokens[1];
            }
            foreach (var obj in HyperV.GetPsVm(server))
            {
                Console.WriteLine(obj.ToString());
            }
        }