Is there a way to find out through WSH which workstations in a Windows domain are blocked?

Is there a way to detect through WSH which workstations in a Windows domain have a locked session?

0


source to share


2 answers


http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1115.mspx

If you scroll down the page, check if the computer is locked on the script page. The script basically hijacks running processes for the machine and looks for the scrnsave.exe file.



It's also worth noting that the author of this script states that he does not know of a reliable way to determine if a computer is locked. Hope this helps, or at least points you in the right direction.

+1


source


Not sure if you are using lock as locked or as in hanging, but I use pstools to check systems with lock enabled. My command line:

pslist \ machinename> machinename.txt



then check machine_name.txt file for logon.scr if it is locked.

0


source







All Articles