Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

disconnect mapped drives for all logged in users?

$
0
0

I have a backup application that needs to mount disks from our storage in order to back them up. It has a problem doing so when the drive specified is already in use by a logged in user to the server as a mapped drive.

I would like to run a command that will disconnect all of those mapped drives for all logged users (even if their logged in status is "disconnected"). I am aware of the get-psdrive and remove-psdrive commands, but how can I run them against all users?

Thanks,

David


Viewing all articles
Browse latest Browse all 15028

Trending Articles