Skip to content

Instantly share code, notes, and snippets.

@getkub
Last active October 23, 2015 13:25
Show Gist options
  • Save getkub/7f3a219e42c31e3d77fc to your computer and use it in GitHub Desktop.
Save getkub/7f3a219e42c31e3d77fc to your computer and use it in GitHub Desktop.
Microsoft Commands - Powershell
# Various Move/Copy commands with pipe operators
http://technet.microsoft.com/en-us/library/hh849852.aspx
#Move files
gci -af -rec | move-item -destination C:\Data\xyz\destinationDir
# find alternative
netstat -aon | select-string ":8089" | select-string "LISTENING"
# wmic
wmic process "name='splunkd.exe'" get Caption","CSName","Name","WindowsVersion","ProcessID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment