Is it possible to determine the Win32_DiskDrive SerialNumber of the Environment.SpecialFolder.System drive?
问题 I've been going around in circles for a bit now, can't seem to find the answer on google either. As the title says, if i get the current drive letter windows is running on, let's say like this: Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System)); Can i then determine its Win32_DiskDrive SerialNumber? I cannot find a way to link them. That is the manufacturer's S/N not the VolumeSerialNumber. Thanks in advance 回答1: You can use ManagmentObjectSearch combined with