Post

Useful PowerShell commands 🖥️

Useful PowerShell commands 🖥️

Show result of the command on ui and write to file 📝

1
{command} | Tee-Object -FilePath {file_path_to_store_output}

Show last n rows of some file 📄

1
Get-Content -Path {file_path} -Tail {n}

Copy result of the command to the clipboard 📋

1
{command} | Set-Clipboard
This post is licensed under CC BY 4.0 by the author.