Board index » Visual Studio » How to get a user's mapped drives from system context?
|
RodMaddock
|
How to get a user's mapped drives from system context?
Visual Studio180
Hello, I run a script as Local System and want to have a way to enumerate all logical drives (including the network ones and drives made with SUBST) that the current console user sees in his Windows Explorer. Win32_LogicalDisk - does not work Win32_MappedLogicalDisk - works, but it gives only network drives and does not sees SUBST-ed ones I tried to look in the Registry, but have found no Registry keys that give the list of all current logical drives. So I would like to know if I connect to WMI as the console user or to get in some way access to WMI objects in the user's context. Any ideas are welcome! - |
