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?