powershell 오늘날짜 파일 txt 저장 -백업웨어 컴퓨터백업

운영자 2022.04.04 16:41:13

Get-ChildItem -Path "c:" -Recurse -ErrorAction SilentlyContinue  |

Where-Object { $_.CreationTime -gt (Get-Date).AddDays(-1) } |

Select-Object Fullname,CreationTime |

Out-File -FilePath c:\1.txt