Hi All,

I have three sites, A, B, and C.

A is our mainsite with approx 500 9x/nt/2k PC's.

B&C are small remote sites with approx 25 PC's each, 90% NT/2k with 10% Win9x.

The two remotes are connected to mainsite over 256kbps leased lines.

We're in the process of merging the remote sites to be part of a single Windows 2000 domain.

The main site has four DCs, each remote site will also have a DC.

I'm looking for a way of making sure that whenever someone logs on they are running the various apps that the logon script calls locally from the site they're in rather than over the link (antivirus/audit software/software usage policy reminder etc..).

I can see of two ways of doing this:

Use the @lserver variable to call these programs from the site holding the validating server.

IF @LSERVER="B_PDC"
SHELL @LDRIVE + "\B_antivirus.bat"
ENDIF

This works on the principle that 90% of the time the first logon server to resond will be the local one.

Or use something I read about here, like

IF substr(@ipaddress)="10.65."
SHELL @LDRIVE + "\B_antivirus.bat"
ENDIF

I'd have thought the latter is the foolproof method as the the IP address must be on a different subnet for each site, so even if you logon against a remote server your IP address shows which site you're in.

As a final quickie, I assume "shell" is the command to use to call a batch file but wait for it to run before continuing?

I'd be extremely grateful for any advice or pointers!

rgds
Paul

[ 04 May 2002, 15:44: Message edited by: hutchingsp ]