Created
May 18, 2017 19:35
-
-
Save dfranciscus/348fb3b137ddde3d443aa2eb86b11623 to your computer and use it in GitHub Desktop.
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
Invoke-Command -ComputerName (Get-ADComputer -Filter 'operatingsystem -like "*Server 2012*"' -Properties * | Select -ExpandProperty Name) -ScriptBlock {Get-SmbSession | Select *} | Select-Object PSComputername,Dialect,ClientComputerName,Clientusername | |
PSComputerName Dialect ClientComputerName ClientUserName | |
-------------- ------- ------------------ -------------- | |
Server 3.02 172.16.12.90 DOMAIN\Test$ | |
Server 3.02 172.16.12.100 DOMAIN\Test2$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment