[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Set Default Printers for Citrix users based on location (gateway or IP of client PC)

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.
CODE:
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!

0
premiertechllc
Asked:
premiertechllc
1 Solution
 
BLipmanCommented:
You should be able to do this with WMI and VBScript...there is a property you can call to return the client IP, stuff it into a variable and run it against a case statment.  
0
 
premiertechllcAuthor Commented:
thanks
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now