PowerTip: Use PowerShell to Display Shared Folders


Summary: Use Windows PowerShell to display shared folders.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display shared folders that I set up on a local computer?

Hey, Scripting Guy! Answer Use the Get-SMBShare cmdlet and no parameters.

Comments (4)

  1. Shihab says:

    Does this cmdlet work on Powershell v2.0 ? I don’t quite think so.

  2. Andrew says:

    A lot of us are still on older version of Powershell, perhaps there should be an indication of which version this works with???

  3. Slogmeister Extraordinaire says:

    This cmdlet does not work on PowerShell 4.0 on Windows 7. According to Microsoft’s documentation, it applies to Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2, but clearly this is not true.

  4. AJ says:

    It works with Invoke-Command with a Windows 2012 R2 target.

Skip to main content