Skip to main content
1-Visitor
Jul 17, 2022 10:47 AM UTC
Question

PowerShell Tail Command

 

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Get-ChildItem D:\ptc\Windchill_12.0\Windchill\logs\MethodServer-*-log4j.log | Sort -Descending | Get-Content -wait

 

Use above command to get the latest MethodServer log file tail in Windows.