PowerShell: SMB

 

SMB Server Message Block

 

$result = foreach ($share in $(Get-SmbShare)) {
  Get-SmbShareAccess -Name $share.Name | Where-Object {$_.AccountName -cmatch '.*'}
}

$result | Export-Csv -Path 'C:\perms.csv'

 

 

 

 

 

 

 

 

 

 

加入GUEST权限

 

posted @ 2022-07-09 22:02  ascertain  阅读(139)  评论(0编辑  收藏  举报