And another way on how to identify and list network mapped drives in Powershell

By Andrei Ungureanu - Last updated: Saturday, March 10, 2018 - Save & Share - Leave a Comment

Pe tema asta am mai scris de nu stiu cate ori dar de fiecare data mai gasesc cate ceva nou. Incercasem sa evit pana acum sa folosesc Get-WmiObject dar se pare ca e o varianta mai buna decat Get-PSDrive.

Si iata de ce. Cu Get-WmiObject –Class Win32_logicaldisk mai obtii o proprietate numita DriveType si in functie de asta poti filtra dupa mapari in retea:

Get-WmiObject -Class Win32_logicaldisk -Filter "DriveType = ‘4’"

image

PS: DriveType 3 e pentru disk local iar 2 pentru removable.

Posted in Windows Client, Windows Server • Tags: , Top Of Page

Write a comment