我正在尝试获取远程PC上安装的软件的版本信息。这在本地机器上很简单,但WMI似乎不允许这样做。理想情况下,我想通过以下方式与远程PC联系:
scope = new ManagementScope(String.Format("\\\\{0}\\root\\cimv2", name), options);
scope.Connect();
//somehow set environment to remote PC
path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles) + @"\Internet Explorer\iexplore.exe";