FakeCMD/Program.cs

16 lines
421 B
C#
Raw Normal View History

2021-01-09 11:18:26 -05:00
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}]");
}
}
}