1

We have several Windows 7 machines that are used for monitoring screens on the wall (one machine per monitor).

We have to log these in every morning and lock them over night. This is a tedious process and I am looking to try and automate this.

We currently use VNC to connect to the machines individually as RDP doesn't allow us to view the screen using the VGA connection also. I have tried using mstsc /console but this doesn't display the console on the monitors.

I have seen ways of locking the machine remotely, so should be able to do this with PsExec. However I have heard that this may not be the best way to do this; Throwing garbage on the sidewalk: The sad history of the rundll32 program. Is there a better way? Also, I cannot find a way of logging the machine on via a script and being able to view the console on the monitor, is this possible?

jkad
  • 11
  • 1
  • Why do you need to lock them at night? – joeqwerty Apr 13 '16 at 12:33
  • Boss says they need to be for security reasons. I guess because if they get compromised in the at night there is no one to notice something weird going on and at night the lock adds an extra password, providing they are attempting to gain access via VNC, – jkad Apr 13 '16 at 12:42
  • Poor answer I know, but it boils down to, my boss says I have to so I have to. – jkad Apr 13 '16 at 12:43

1 Answers1

0

PSSutdown might come in handy; something like

psshutdown \\myComputer -l
antic-eye
  • 1
  • 3