Skip to content

Instantly share code, notes, and snippets.

View gryte's full-sized avatar

Adam Linkous gryte

  • CapitalOne
  • Texas
View GitHub Profile
@gryte
gryte / powershell_cmdList.ps1
Last active August 29, 2015 14:22
List of useful and common powershell commands
# 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}