guyrleech

Search history for a string ("date1970") & put in clipboard

Nov 13th, 2019
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get-History | Where-Object { $_.CommandLine -match 'date1970' -and $_.CommandLine -notmatch '^Get-History' }|Select-Object -ExpandProperty CommandLine -Last 1|Set-Clipboard
Add Comment
Please, Sign In to add comment