aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
blob: d988de08ff56bb16504bbe503fa91f243a08c5a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using Microsoft.Win32;

namespace FakeCMD
{
    class Program
    {
        static void Main(string[] args)
        {
            RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
            var buildNumber = registryKey.GetValue("UBR").ToString();
            Console.WriteLine($"Microsoft Windows [Version {buildNumber}]");
        }
    }
}