Hi,
We have a screen recording application in use which upon installation puts
an entry into the registry called clientid which basically contains the PC
name. It then records the screen, and supervisors can later on view the
recordings (Held centrally on the server) by computer name.
However we have run into the situation where some PC's have been ghosted, so
the clientid has been duplicated, and also the situation where some PC's do
not seem to even have the client on at all.
I am looking to write a vbscript to basically sort this out. I have a list
of the machines to go through but am unsure how I should do this. These PC's
are in use 24/7 so anything I do must be done silently...
I attempted to write a vbscript to use the regread functionality, however
this throws an error if the key is not present (Which is the case if the
client is not installed)? Also I am not entirely sure what is the best method
of actually getting the script to run, I was considering using psexec, but I
believe this does not transmit credentials securely, so was wondering if I
could do the following in vbscript.
Loop to read the text file until eof
assign the current line to strComputer
connect to strComputer
read registry to find key value
if value exists append value onto anonymous writable document on network share
else if value does not exist append NULL and strComputer onto document
How exactly could I go about this?