Help with Get-smbshare

I am trying to check if the Name exits in the Get-smbshare. If the name exists then I would like to use the Remove-SmbShare to remove that name

How do I use the Get-smbshare to check for the particular name if found or not found. So I can remove it.

Thank you.


what have you tried so far? Did you read the help topic for Get-SMBShare?

After 45 seconds gfoogling I found this:

:wink: :wink: