Created
May 1, 2015 17:19
-
-
Save ChrisTruncer/7a8299867b05683385d0 to your computer and use it in GitHub Desktop.
Iterate over Fileservers each on a new line to run get-netsessions
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
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