[Last Call] Learn how to a build a cloud-first strategyRegister Now

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

Map a script based on IP - VB or KIX

My company has recently adopted the practice of opening branch locations, and our users now rotate amongst the various offices.  As such, we need to provide these users the ability to have certain printers available depending on which office they happen to log into.

One way I was thinking was to do this based on IP, as each office has its own subnet (10.0.0.0, 10.0.1.0, etc) with VPNs between each and the main office, but the problem this presents is that the main office has two levels, and we need to be able to distinguish between those two levels.  

We currently do that by putting the users in those different levels or locations in different AD Orignazational Units, then map drives and printers according to which OU they are in.  This is okay if the users always log into the same locations - but this is not the case.

If I were to put each PC in an OU (can i do this?), can I then check for the OU that the user is logging into then map printers accordingly?  Or, do you have a better approach?


We already use VB for logon scripts, but we are in the process of redoing these in KIX, so either method would be graciously accepted.
0
nprignano
Asked:
nprignano
  • 2
  • 2
1 Solution
 
hamlintechCommented:
you can map in KIX using the EnumIPInfo() function - this will retrieve the IP of the PC that the user is logging into.  also, there is a macro to call - @wrksta - this returns the computer name which you can store all or part of in variable and use in a SELECT...CASE statement.


www.kixtart.org

0
 
nprignanoAuthor Commented:
can you post an example of this?  sounds like what I am looking for.


nprignano
0
 
hamlintechCommented:
0
 
nprignanoAuthor Commented:
thanks.  the middle link is something i have not seen yet and will definitely look into more.

nprignano
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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