mirror of
https://github.com/alee14-projects/FakeCMD.git
synced 2025-01-22 17:13:02 -05:00
16 lines
421 B
C#
16 lines
421 B
C#
|
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}]");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|