using System; using System.Collections; class MainClass { public static void Main() { IDictionary vars = Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Process); foreach (string s in vars.Keys) { if (s.ToUpper().StartsWith("U")) { Console.WriteLine(s + " = " + vars[s]); } } } }