Is there a solution to get this command to work without showing the console?
ShellExecute(0, "runas", "cmd.exe", "wmic csproduct get