Windows

公司資產中的非法內容

  • May 15, 2017

我試圖在公司筆記型電腦中查找非法內容,例如:電影、種子、音樂等。

我們正在考慮建構一個腳本來自動搜尋和報告具有某些副檔名(.avi、.tor、.mp3 等)的文件名。

有沒有人做過不同的事情或為此目的使用了特定的軟體?

謝謝,

我們不知道您的公司是如何運營的,但這可能會讓您自己陷入困境,和/或讓您的使用者討厭您。正如其他人所說,防止這種情況的最佳方法是阻止 p2p 流量。文件類型本身並不是非法的。

但是,如果您確定要這樣做並且被允許這樣做,最好的方法是使用簡單的 Powershell 腳本。

這不會給你美麗的結果,但它會給你一個起點。它將輸出保存在使用者電腦上的 .txt 文件中。

# * Make an array of Computers you want to check
$ComputerNames = "PC1","PC2","PC3"
# * Define the path you want to check there
$Path = "C:\Users\"
# * Loop through your List of PCs
Foreach ($Computer in $ComputerNames) {
   # * Invoke Command on every PC in List
   Invoke-Command -ComputerName $Computer {
       # * Get the Files you search for and write them in a text file.
       Get-Childitem -Path $Path -File -Recurse|Where-Object {$_.Extension -eq ".mp3" -Or $_.Extension -eq ".avi" -Or $_.Extension -eq ".tor"}|Select-Object FullName > C:\Output.txt
   }
}

引用自:https://serverfault.com/questions/848472