@echo off

ver | find "5.1" > Nul
If not ErrorLevel 1 goto 2k3xp

ver | find "5.2" > Nul
If not ErrorLevel 1 goto 2k3xp

rem If it's neither 2k3 or xp, it's not a legacy OS
Start /wait %systemdrive%\drivers\net\INTEL\APPS\ProsetDX\Win32\DxSetup.exe /qn /li %temp%\PROSetDX.log
goto :end

:2k3xp
rem If it's either 2k3 or xp, it's a legacy OS
Start /wait %systemdrive%\drivers\net\INTEL\APPS\ProsetDX\XP2K3_32\DxSetup.exe /qn /li %temp%\PROSetDX.log

:end
REM Uncomment the next line if VLANs or Teams are to be installed.
REM Start /wait /b cscript %systemdrive%\wmiscr\SavResDX.vbs restore %systemdrive%\wmiscr\wmiconf.txt > %systemdrive%\wmiscr\output.txt

exit