Skip to content

Instantly share code, notes, and snippets.

@ChrisTruncer
Created May 1, 2015 17:19
Show Gist options
  • Save ChrisTruncer/7a8299867b05683385d0 to your computer and use it in GitHub Desktop.
Save ChrisTruncer/7a8299867b05683385d0 to your computer and use it in GitHub Desktop.
Iterate over Fileservers each on a new line to run get-netsessions
get-content <FILE> | foreach-object { Get-NetSessions $_ } | Out-File -Encoding ascii C:\temp\filesharesessions.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment