bsharath
asked on
Find who are all connected to a machines network card
Hi,
Can i find who all are connected to a machines network card in any way shares,mstsc,c$ or any session.
Regards
Sharath
Can i find who all are connected to a machines network card in any way shares,mstsc,c$ or any session.
Regards
Sharath
go to the PC you want to check on and right click my computer, Manage, Shared folders, the go to open files. It will give you a list of open files and who has them open :0)
ASKER
Can i do this remotely with a script which will give the results to a file.
PsLoggedOn v1.33
http://www.microsoft.com/technet/sysinternals/utilities/psloggedon.mspx
psloggedon.exe \\PCNAME >>c:\Logons.txt
http://www.microsoft.com/technet/sysinternals/utilities/psloggedon.mspx
psloggedon.exe \\PCNAME >>c:\Logons.txt
ASKER
From a file of machine names?
Can we get this command to a bat file to execute?
Can we get this command to a bat file to execute?
That command doesnt work well off of flat files for PC Names....
In combination with PsExec though, might work....
Copy the following into a batch file....
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~
echo %date% %time% %computername% >>\\server\share\logons.tx t
psloggedon >>\\server\share\logons.tx t
exit
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~
Save it as logons.bat
Then try this....
psexec @c:\names.txt -d -c logons.bat
In combination with PsExec though, might work....
Copy the following into a batch file....
~~~~~~~~~~~~~~~~~~~~~~~~~~
echo %date% %time% %computername% >>\\server\share\logons.tx
psloggedon >>\\server\share\logons.tx
exit
~~~~~~~~~~~~~~~~~~~~~~~~~~
Save it as logons.bat
Then try this....
psexec @c:\names.txt -d -c logons.bat
ASKER
I get this
PsLoggedOn v1.31 - Logon Session Displayer
Copyright (C) 1999-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Connecting to Registry of \\PCNAME...
Error opening HKEY_USERS for \\PCNAME
Make sure that the Remote Registry service is started on \\PCNAME.
Unable to query resource logons
PsLoggedOn v1.31 - Logon Session Displayer
Copyright (C) 1999-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Checking ACCAPP...Connecting to Registry of ACCAPP...
Checking ACCDB...Connecting to Registry of ACCDB...
PsLoggedOn v1.31 - Logon Session Displayer
Copyright (C) 1999-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Checking ACCAPP...Connecting to Registry of ACCAPP...
Checking ACCDB...Connecting to Registry of ACCDB...
Error opening HKEY_USERS for ACCDB
Make sure that the Remote Registry service is started on ACCDB.
Unable to query resource logons
Checking ACCES...Connecting to Registry of ACCES...
Checking ACCINT...Connecting to Registry of ACCINT...
Checking BOUNDSCHECKERV0...Connecti ng to Registry of BOUNDSCHECKERV0...
Checking BP-DB-VDEV01...Connecting to Registry of BP-DB-VDEV01...
Checking BP-DB-VDEV03...Connecting to Registry of BP-DB-VDEV03...
Checking BP-DB-VQA01...Connecting to Registry of BP-DB-VQA01...
Checking BP-DB-VQA02...Connecting to Registry of BP-DB-VQA02...
Checking BP-DB-VQA03...Connecting to Registry of BP-DB-VQA03...
Checking BP-DCT-VDEV01...Connecting to Registry of BP-DCT-VDEV01...
Checking BP-ES-VDEV01...Connecting to Registry of BP-ES-VDEV01...
Checking BP-ES-VDEV02...Connecting to Registry of BP-ES-VDEV02...
Checking BP-ES-VDEV03...Connecting to Registry of BP-ES-VDEV03...
Checking BP-ES-VDEV04...Connecting to Registry of BP-ES-VDEV04...
Checking BP-ES-VDEV05...Connecting to Registry of BP-ES-VDEV05...
Checking BP-ES-VQA01...Connecting to Registry of BP-ES-VQA01...
Error opening HKEY_USERS for BP-ES-VQA01
Make sure that the Remote Registry service is started on BP-ES-VQA01.
Unable to query resource logons
Checking BP-ES-VQA02...Connecting to Registry of BP-ES-VQA02...
PsLoggedOn v1.31 - Logon Session Displayer
Copyright (C) 1999-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Connecting to Registry of \\PCNAME...
Error opening HKEY_USERS for \\PCNAME
Make sure that the Remote Registry service is started on \\PCNAME.
Unable to query resource logons
PsLoggedOn v1.31 - Logon Session Displayer
Copyright (C) 1999-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Checking ACCAPP...Connecting to Registry of ACCAPP...
Checking ACCDB...Connecting to Registry of ACCDB...
PsLoggedOn v1.31 - Logon Session Displayer
Copyright (C) 1999-2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Checking ACCAPP...Connecting to Registry of ACCAPP...
Checking ACCDB...Connecting to Registry of ACCDB...
Error opening HKEY_USERS for ACCDB
Make sure that the Remote Registry service is started on ACCDB.
Unable to query resource logons
Checking ACCES...Connecting to Registry of ACCES...
Checking ACCINT...Connecting to Registry of ACCINT...
Checking BOUNDSCHECKERV0...Connecti
Checking BP-DB-VDEV01...Connecting to Registry of BP-DB-VDEV01...
Checking BP-DB-VDEV03...Connecting to Registry of BP-DB-VDEV03...
Checking BP-DB-VQA01...Connecting to Registry of BP-DB-VQA01...
Checking BP-DB-VQA02...Connecting to Registry of BP-DB-VQA02...
Checking BP-DB-VQA03...Connecting to Registry of BP-DB-VQA03...
Checking BP-DCT-VDEV01...Connecting
Checking BP-ES-VDEV01...Connecting to Registry of BP-ES-VDEV01...
Checking BP-ES-VDEV02...Connecting to Registry of BP-ES-VDEV02...
Checking BP-ES-VDEV03...Connecting to Registry of BP-ES-VDEV03...
Checking BP-ES-VDEV04...Connecting to Registry of BP-ES-VDEV04...
Checking BP-ES-VDEV05...Connecting to Registry of BP-ES-VDEV05...
Checking BP-ES-VQA01...Connecting to Registry of BP-ES-VQA01...
Error opening HKEY_USERS for BP-ES-VQA01
Make sure that the Remote Registry service is started on BP-ES-VQA01.
Unable to query resource logons
Checking BP-ES-VQA02...Connecting to Registry of BP-ES-VQA02...
Is the logons.txt being populated?
Remove the -d switch, it tells psexec not to wait for the process to exit before moving on.....
Remove the -d switch, it tells psexec not to wait for the process to exit before moving on.....
ASKER
If i remove the -d i get nothing in the file
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.