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.