Hi I´m trying to create a Snapin pack using this scipt but when I test it I recive an error in Line 2 Character 5; Code: 800A03F2
I’ve no experience scripting and not sure were the failure is:
This is what I have in my .VBS file
Set csv="C:\Program Files (x86)\FOG\tmp\IPSet2301\ComputerList.csv"
for /f "skip=1 delims=, tokens=1-6" %%a in (%csv%) do (
if /I "%computername%"=="%%a" (
netsh int ipv4 set address "Wi-Fi" static %%b %%c %%d
netsh int ipv4 set dnsserver "Wi-Fi" static %%e
netsh int ipv4 add dnsserver "Wi-Fi" %%f
)
)