如何在 PowerShell 中显示当前映射的驱动器?

Kel*_*art 12 powershell c# command-line .net-framework mapped-drive

需要一个 PowerShell 命令来显示它映射到的驱动器号和路径。

换句话说,一个命令向我显示与 Windows 资源管理器相同的内容。

试过这个:

Get-WmiObject -Class Win32_MappedLogicalDisk | select Name, ProviderName
Run Code Online (Sandbox Code Playgroud)

它缺少几个驱动器(在 Windows 资源管理器中列出)。