Aracılığıyla paylaş


OfficeActivity tablosu için sorgular

Tüm Office Etkinlikleri

Office Etkinliği tarafından sağlanan tüm olaylar.

OfficeActivity
| project TimeGenerated, UserId, Operation, OfficeWorkload, RecordType, _ResourceId
| sort by TimeGenerated desc nulls last

Dosyalara erişen kullanıcılar

Kullanıcılar eriştikleri OneDrive ve SharePoint dosyalarının sayısına göre sıralanır.

OfficeActivity
| where OfficeWorkload in ("OneDrive", "SharePoint") and Operation in ("FileDownloaded", "FileAccessed")
| summarize AccessedFilesCount = dcount(OfficeObjectId) by UserId, _ResourceId
| sort by AccessedFilesCount desc nulls last

Dosya yükleme işlemi

Kullanıcıların OneDrive ve SharePoint'e yükledikleri dosya sayısına göre sıralanmış Listeler.

OfficeActivity
| where OfficeWorkload in ("OneDrive", "SharePoint") and Operation in ("FileUploaded")
| summarize AccessedFilesCount = dcount(OfficeObjectId) by UserId, _ResourceId
| sort by AccessedFilesCount desc nulls last

Kullanıcı için Office etkinliği

Sorgu, kullanıcının Office üzerindeki etkinliğini gösterir.

// Replace the UPN in the query with the UPN of the user of interest
let v_Users_UPN= "osotnoc@contoso.com";
OfficeActivity
| where UserId==v_Users_UPN
| project TimeGenerated, OfficeWorkload, Operation, ResultStatus, OfficeObjectId, _ResourceId

İletme kuralı oluşturma

e-posta iletme kurallarının oluşturulmasını Listeler.

OfficeActivity
| where OfficeWorkload == "Exchange"
| where Operation in~ ("New-TransportRule", "Set-TransportRule")
| extend RuleName = case(Operation =~ "Set-TransportRule", tostring(OfficeObjectId), Operation =~ "New-TransportRule", tostring(parse_json(Parameters)[1].Value), "Unknown")
| project  TimeGenerated, ClientIP, UserId, Operation, RuleName, _ResourceId

Şüpheli dosya adı

Bir yürütülebilir dosyanın gizlendiğini gösterebilecek ada sahip dosyalardaki işlemler.

OfficeActivity
| where RecordType =~ "SharePointFileOperation" and isnotempty(SourceFileName)
| where OfficeObjectId has ".exe." and OfficeObjectId matches regex @"\.exe\.\w{0,4}$"