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 [email protected]
Also posted to:
Mastodon Bluesky

This website was last updated on June 29, 2026 at 10:19

New posts for 119 consecutive weeks

1661 total posts

© 2026 Sajal Choudhary. All rights reserved.