SharePoint 2016: audyt i Document ID w praktyce (on‑prem)

2025-10-04 · 1 min

Lead

On‑prem roku 2016 bywa kapryśny, ale działa. Tu masz sekwencję: Audyt → Document ID → weryfikacja i parę „gotowców” PowerShell.

Audyt

Central Admin → General Settings → Configure Audit Settings.
Na kolekcji witryn: Audit Log Reports → zaznacz Opening/Downloading, Editing, Moving/Copying itd.

Document ID

Site Collection Features → Document ID Service (Enable).
Ustaw prefiks w Document ID settings (np. SQLM-).

Reindeksacja i nadanie istniejącym

  • Opcja „reassign IDs for existing” może trwać — zostaw jobowi czas.
  • Przebieg w ULS sprawdzisz po DocumentId.

PowerShell

1
2
3
4
5
6
7
$siteUrl="https://sp2016/sites/Docs"
$site=Get-SPSite $siteUrl
$site.Audit.AuditFlags="All"
$site.Audit.Update()
Enable-SPFeature -Identity "DocumentId" -Url $siteUrl -Force
$svc = Get-SPDocumentIdServiceApplication
Set-SPDocumentId -Site $siteUrl -Prefix "SQLM-"

Weryfikacja

  • Kolumna Document ID widoczna w bibliotekach.
  • Raporty audytu pokazują operacje użytkowników.
  • Dla klasycznych widoków można dołożyć kolumnę do widoku listy.

Pamiętaj o retencji logów ULS i Log File Location – inaczej zjesz dysk.


Tagi: SharePoint 2016 , Audyt , Document ID , PowerShell , Governance

Marcin Pytlik
LinkedIn · GitHub

Marcin Pytlik

LinkedIn · GitHub