Multiple choice technology

Which of the Win32 class is used in PowerShell to get the list of shared folders in a Local/Remote System?

  1. Win32_Directory

  2. Win32_Share

  3. Win32_Volume

  4. Win32_SystemPartitions

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Win32_Share is the WMI class that represents shared resources on a Windows system. Using Get-WMIObject Win32_Share returns all shared folders, including administrative shares (C$, ADMIN$) and user-created shares. Win32_Directory represents directories, Win32_Volume represents volumes, and Win32_SystemPartitions represents disk partitions.