Last active
August 29, 2015 14:22
-
-
Save gryte/4d30c75d3d67ac884428 to your computer and use it in GitHub Desktop.
List of useful and common powershell commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sort directory listing by file date time stamp | |
gci | Sort-Object -Property lastwritetime | |
# Discover session id's for current user sessions | |
quser | |
# Display the processes for a given session id | |
Get-Process | Where-Object {$_.sessionid -eq 5} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment