Re: BAT file to retrieve Registry Setting



Thanks for the reply Mark.

The key is HKLM\Software\Citrix\ICA Client\ --> ClientName and the
workstations are the infamous Windows 95 with a few Windows 98s.

I am not sure if these machines have reg.exe on them. If it is not a default
in Win 95, then probably not. I understand that BAT scripting is
considerably different than vbScripting, but is there a way to explicitly
say, "Give me the value at HKLM\Software\Citrix\ICA Client\ --> ClientName"?

I plan to setup a BAT file accessible on the network for each person to run
and then format the output in the COMMAND window with a PAUSE at the end so
they can write it down.

COMPUTERNAME - Computer1
CITRIX CLIENT NAME - CitrixClientName1

Ultimately, I would like to handle a likely NULL value or document what it
will look like. I plan to do this with a, hopefully simple, IF EXIST.

Thanks again Mark.

Bart Perrier

"Mark V" <notvalid@xxxxxxxxxxx> wrote in message
news:Xns96706709DF9E0z9zzaQ2btw@xxxxxxxxxxxxxxxxxxxxxxx
> In microsoft.public.win2000.cmdprompt.admin Bart Perrier wrote:
>
> > Can anyone help me with a BAT file to pull a String Value from
> > HKLM\Software and the computer name? I need to send a number of
> > folks out to workstations that are 95 machines. Rather than try
> > to setup vbScript on each workstation, I need to use a BAT file.
>
> Does "that are 95 machines" mean they are Windows 95 OS? Or more
> probably 95 machines running ???
>
> What string value? Do you have the MS utility REG.EXE?
>
> %COMPUTERNAME% may be sufficient for the computer name.
> REG.EXE QUERY args
> with subsequent FINDSTR filter, etc. ... Perhaps.
>
> Also, if the systems are in a Domain you may be able to accomplish
> the tasks remotely. Possibly utilizing PSEXEC.EXE (Sysinternals).
> If not, then is the output to STDOUT, local file, network file? Will
> the technicians be logged on locally (or a Domain) Administrators
> account? A few more details will help.


.



Relevant Pages

  • Re: VB6 - Vista
    ... working relatively fast, nobody replaces it. ... So we have machines with different operating systems. ... You can still buy machines with windows 2000 from Dell, ...
    (microsoft.public.vb.general.discussion)
  • Re: Change local administrator password for all PCs in the domain
    ... > I have about 200 workstations in my Windows 2000 domain. ... you could setup a custom script or Group Policy (in ... no workgroup machines. ...
    (microsoft.public.windows.server.scripting)
  • Re: Computer \COMPUTERNAME cannot be managed because it is not running Windows NT
    ... computer management to remotely manage my workstations. ... machines with fresh installs of Windows XP Professional SP2. ...
    (microsoft.public.windowsxp.security_admin)
  • Computer \COMPUTERNAME cannot be managed because it is not running Windows NT
    ... I have recently come across this error message when attempting to use ... computer management to remotely manage my workstations. ... machines with fresh installs of Windows XP Professional SP2. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Cryptogram Comment
    ... >> bother me with Windows questions. ... >> machines are broken. ... Just like if you don't know to tune up your car every year then you ... > and Linux and other open OS's make all patches FREE to redistribute. ...
    (sci.crypt)

Loading