we have 3 different hardware models running windows 7. we want to deploy a application based on the model. How can I create a batch file o any other script to run "wmic computersystem get model" based on the model go to model folder and install that application.
HP EliteBook 840 G3
HP EliteBook 840 G4
HP EliteBook 850 G4
There is folder on server share having folder matching same name.
if script detects "HP EliteBook 840 G3", it should check that folder and match the folder name and install the application insid it.
Is there any way to do that?