Good Evening Experts,
I want to use KIX login or login script that when a citrix user logs in from a workstation at a site (we have several sites), that the local client IP or gateway is captured and then printers are mapped based on the client PC location (obtained from the IP or Gateway address). I know you can use KIX login scripts to do this using enumerateipinfo but I am lost configuring this...so I tried to use this code to get gateway address of the client which works, but i get an error %%x not expected when I run it.
ipconfig|find /i "gateway" > c:\gateway.tmp
for /f "tokens=2 delims=:" %%x in (gateway.tmp) do set mygate = %%x
If "gateway" = 192.168.1.1 then.... (here i would map printers and set default)
Anyone can steer me in the right direction I would greatly appreciate it!!!
THANKS IN ADVANCE!