NT Batch Registry Problems - TechRepublic
General discussion
October 25, 2000 at 02:01 AM
tschilbach

NT Batch Registry Problems

by tschilbach . Updated 25 years, 8 months ago

I am trying to compare a certain key when a user logs into the network to see if they are on a laptop or a workstation. Once I find this key I want the batchfile to execute the ipconfig /release /renew command.

The key I am trying to locate and compare by batch is:

HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/PCMCIA
“Start” DWORD:00000000 or DWORD:00000004

This tells me if its a laptop or a workstation. Does anyone have any ideas how to do this via batch file?

This discussion is locked

All Comments