si.blockDevices and si.fsSize intermittently returns network mapped drives
See original GitHub issueDescribe the bug si.blockDevices and si.fsSize intermittently returns network mapped drives. Most of the time doesn’t return the network mapped drives.
To Reproduce Steps to reproduce the behavior:
- used functions: si.blockDevices and si.fsSize, both returns or not returns network mapped drives
async function fsSize() { var data = await si.fsSize() console.log(data) }
or
async function blockDevices() { var data = await si.blockDevices() console.log(data) }
Current Output Returns “C:”, “D:”
Expected behavior Returns “C:”, “D:”, “N:” I double checked and N: is right mapped
Environment (please complete the following information):
- systeminformation package version: 5.1.1
- OS: Windows 10 20H2
- Hardware: Dell G3 notebook
Additional context Would suggest to implement a new function:
getNetworkMappedDrives()
and use the:
Get-ItemProperty -Path "HKCU:\Network\*"
To return network mapped drives from Windows Registry.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
@dverzolla will try this tomorrow … thank you for your investigation!
@dverzolla yes, I can confirm this behavior. As drives are mapped per user, this should be absolutely fine … closing this for now.