2025년 10월 20일 월요일

ETC - Detect system file changes

 Topic - 윈도우 시스템 전체에서 파일의 변화를 탐지하여 바뀐파일을 출력하게 하는 명령어

(A command that detects changes to files throughout the Windows system and outputs the changed files.)

Solution

Step - 1 - Powershell open

Step - 2 - Enter Command

Get-ChildItem "$env:USERPROFILE\AppData" -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.LastWriteTime -gt (Get-Date).AddMinutes(-5) } | Sort-Object LastWriteTime -Descending | Select-Object FullName, LastWriteTime

5분을 기준으로 변경된 파일의 목록이 나온다(업무중 사용하는 프로그램을 변경하려는데 설정값이 바뀔때 어떤 파일이 바뀌는지 알기 위해 알아봄, 먼저 입력해서 결과값을 보고 프로그램 설정 변경후 다시 입력하면 변경된 파일을 알 수 있음)



댓글 없음:

댓글 쓰기