get-childitem "C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\16\logs\"|sort LastWriteTime -Descending |select -first 1|get-content -tail 1 -wait
If in SharePoint 2013, change your path to C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\13\logs\
Post Views: 3,894
2018/09/20 by admin