I found a list of Windows shares using this cmdlet:
gwmi -Class win32_share -ComputerName blah
However, when I use the below cmdlet, it does not show the security setting for ALL shares:
gwmi -Class Win32_LogicalShareSecuritySetting -ComputerName blah
I can see the share w/ the missing security via the Server Management console. Can anyone help? thx!
NOTE: There's a huge discrepancy between the number of record returned from win32_share and win32_logicalsharesecuritysetting.