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?

Re: Best way to read registry of remote computer silently by Pegasus

Pegasus
Thu May 01 14:17:35 CDT 2008


"UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
news:37F9EF5E-E0D5-403E-9476-807AFA531563@microsoft.com...
> 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?

Let's have a look at your script!



Re: Best way to read registry of remote computer silently by Greg

Greg
Thu May 01 15:19:00 CDT 2008

Can you use a logon script? Do users log off/on everyday?




--Greg

"Pegasus (MVP)" wrote:

>
> "UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
> news:37F9EF5E-E0D5-403E-9476-807AFA531563@microsoft.com...
> > 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?
>
> Let's have a look at your script!
>
>
>