N-central Troubleshooting
What command should I use to list mapped drives on my devices
Last Modified
Fri Nov 23 15:02 GMT 2018
Description
- What command should I use to list mapped drives on my devices
Environment
- N-able RMM
- N-able N-central
Solution
- You can use the following powershell commands to view what mapped drives are currently found on the device(s):
- The following does not exclude drives that point to the local file system:
- Get-PSDrive -PSProvider FileSystem | Select-Object name, @{n="Root"; e={if ($_.DisplayRoot -eq $null) {$_.Root} else {$_.DisplayRoot}}}
- The following does exclude drives that point to the local file system:
- Get-PSDrive -PSProvider FileSystem | Select-Object Name, DisplayRoot | Where-Object {$_.DisplayRoot -ne $null}
- The following does not exclude drives that point to the local file system:
- NOTE: To run this command you would need to have this created as an Automated Task (N-able RMM) or Scheduled Task (N-able N-central)