Netwrix 1Secure 提供跨数据和身份的统一可见性——免费试用14天,享有完全访问权限。开始免费试用

资源中心操作指南

如何查找共享文件夹

如何查找共享文件夹

Windows Server 版 Netwrix Auditor

  1. 运行 Netwrix Auditor → 转到“Reports(报告)”→ 打开“Windows Server”→ 进入“Windows Server - State-in-Time”→ 选择“File Shares on Windows Servers”→ 单击“View(查看)”。
  2. 要保存报告,请单击“Export”按钮并选择 PDF、Word 或 Excel 格式。要通过电子邮件定期接收报告,请单击“Subscribe”按钮并选择您偏好的计划。

示例报告:

a table showing file shares on windows servers

了解更多:Netwrix Auditor for Windows Server

原生审计

  • 打开 Powershell ISE → 使用以下代码创建新脚本并运行它,指定导出(export)的路径:
      # Import the AD module to the session
Import-Module ActiveDirectory
# Retrieve the dNSHostName attribute from all computer accounts in AD
$ComputerNames = Get-ADComputer -Filter * -Properties dNSHostName |Select-Object -ExpandProperty dNSHostName

$AllComputerShares = @()

foreach($Computer in $ComputerNames)
{
    try{
        $Shares = Get-WmiObject -ComputerName $Computer -Class Win32_Share -ErrorAction Stop
        $AllComputerShares += $Shares
    }
    catch{
        Write-Error "Failed to connect retrieve Shares from $Computer"
    }
}

# Select the computername and the name, path and comment of the share and Export
$AllComputerShares |Select-Object -Property PSComputerName,Name,Path,Description |Export-Csv -Path C:\data\pcshares.csv -NoTypeInformation
      
  • 在 MS Excel 中打开脚本生成的文件。

示例报告:

a table showing the paths and descriptions of a computer

定期查看共享文件夹报告,发现偏离已知良好基线的情况

默认情况下,Microsoft Windows 操作系统会创建一些隐藏的共享文件夹,称为“admin shares(管理共享)”,只有具备管理权限的用户才能访问。此外,用户还可以使用 Windows 资源管理器创建非默认共享文件夹,以便在网络中共享信息。由于这两类共享文件夹都可能包含敏感信息,为了维护数据安全并尽量降低数据泄露风险,你需要定期查看所有 Windows 服务器上的共享文件夹列表,以便对文件和文件夹实施适当的安全控制。

Netwrix Auditor for Windows Server 可帮助你根据计算机管理最佳实践,检查所有服务器上的共享文件夹,并快速发现任何偏离已知良好基线的可疑共享。文件共享列表包含特定 Windows 服务器上每个文件共享的名称和类型,因此你可以通过定期清理来减少攻击面。

分享到