Sajal Choudhary

Garden Stream Nordletter Books About
Colophon Now Feeds
Evergreen TIL Shelf Stories Poems
Blog Micro Photos
Books Film TV Games
til powershell
Sajal Choudhary https://sajalchoudhary.net

Remove Child Items Skipping One

POWERSHELL

Get-ChildItem -Path "C:\Windows\System32\winevt\Logs\*" -File -Include Archive-Sec* | Sort-Object LastWriteTime -Descending | Select-Object -Skip 1 | Remove-Item -Force

references:

Subscribe to NordLetter

A weekly newsletter on living in Finland.

← Back to Til
UPDATED July 8, 2024 at 08:59
Thoughts? Email sajal@sajalchoudhary.net

This website was last updated on June 11, 2026 at 11:54

New posts for 116 consecutive weeks

1642 total posts

© 2026 Sajal Choudhary. All rights reserved.