본문 바로가기

[Powershell] 폴더 특정 날짜 이후 변경 목록 표시

액트 2019. 10. 31.
반응형

Powershell


사용법

1. Powershell 실행 (관리자 권한으로 cmd창에서 powershell 입력해도 되고, windows powershell 앱을 찾아서 실행해도 됩니다.) 

Powershell
Powershell 실행

 

2. 아래 문구를 원하는 형식으로 바꾸어 입력

Get-ChildItem "경로" | 

Where-Object { $_.CreationTime -gt [datetime]"특정시간" } | 

Sort-Object CreationTime | 

Format-Table Name, CreationTime

 

실행 모습

ex)

Get-ChildItem "C:\Users\users\Documents\test" | Where-Object { $_.CreationTime -gt [datetime]"2019/10/01" } | Sort-Object CreationTime | Format-Table Name, CreationTime

특정 시간 이후 변경된 목록 표시

경로는 내문서 밑에 있는 test 폴더

특정 시간은 2019년 10월 01일과 2019년 10월 31일 두개를 조회해 보았습니다.

아래는 윈도우 창에서 조회한 수정 날짜 입니다.

윈도우 창에서 수정한 날짜 확인

이상입니다. 감사합니다.

 

 

반응형

댓글