I created two response files and I want to create a batch file were one of the two response files gets used depending on the computer name. To get the name of a computer, I have been using
wmic computersystem get name
I am thinking I have to use IF THEN but I am not so sure.
You could do it like this with a switch in PowerShell:
A traditional
if/elsestatement in PowerShell would look like this: