79141613

Date: 2024-10-30 14:50:35
Score: 2
Natty:
Report link

I may have missed the reason you're not using CMDLETs instead of "net" command line syntax, but have you tried?

Get-SMBShare | Where-Object {$_.Name -notlike "*$*"} | ForEach-Object {Get-SMBShareAccess -Name $_.Name}
Reasons:
  • Whitelisted phrase (-1): have you tried
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Vern Anderson