|
Hi,
I currently run 2 sites based in the UK and Germany. The two sites both exist on the same domain but with different IP address scopes. UK - 164.84.178.*** Germany - 164.84.179.***
In my company we install patches regualarly on the pc's. We have these patches install from a local site file server using a login script with kixtart. Here is an example of part of the login script for the UK: ; Shortcuts $File = "\\UKFILESVR\" ; End Shortcuts
; Start Global Mappings use z: /delete ;remove current mapping to be safe use z: $file + "Software" ;Map the IT Software Share ; End Global Mappings
; Start Group Mappings if ingroup ("Domain Users") run "z:\Patch.exe" endif ; End Group Mappings
If the user resides in Germany they have a different login script in their profile that executes the same patch but from the local file server in Germany. Here is their login script. ; Shortcuts $File = "\\GERFILESVR\" ; End Shortcuts
; Start Global Mappings use X: /delete ;remove current mapping to be safe use X: $file + "Software" ;Map the IT Software Share ; End Global Mappings
; Start Group Mappings if ingroup ("Domain Users") run "X:\Patch.exe" endif ; End Group Mappings
The problem we have is if we have people from the UK travelling to Germany, they logon to the network in Germany and their login script automatically checks for a patch from the UK file server. Some of these patches can be as big as 30MB so obviously we dont want them downloading this across the WAN. What i would like to achieve from Kixtart, but unfortunately dont have the programming knowledge to do, is if a UK user travels to Germany (they automatically receive a 164.84.179.*** IP address by DHCP, Vice versa if a Germany user comes to the UK they automatically get a 164.84.178.*** IP address) kixtart knows what IP address they have and executes the patch from the local site file server. So i was think integrate both the UK and Germany login scripts and if kixtart could define which patch to run, i.e. the patch on the Z drive (UK) or the patch on the X drive (Germany) based on the users ip address.
Does anyone know how i could program this into the batch file?
Thanks.
Paul
|