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.

Claire,

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

After 45 seconds gfoogling I found this:

https://social.technet.microsoft.com/Forums/en-US/8c56d216-40fd-4252-96b2-07cb35746e93/using-getsmbshare-to-check-if-share-exist?forum=winserverpowershell

:wink: :wink: