Well, sorry for my poor english, I will try to be clear [Smile]

We have W2K Prof as OS.
I defined the Local Policy for the user to execute the login script at the connection.

I completely bypass the netlogon process so I can
My login script is working has following :

When a user opens a session, the script defined in the policy is executed locally on the station.

I check if the station is on the network, on RAS or stand alone.
If it is on the network, I check which subnet it is, affect the server file depending on the subnet, then I update on the station all the required files to be executed for a RAS or stand alone session
then I do what a login script is for
- install sofware
- mount share drivers /printers
- configure desktop ...

If it is a RAS session,
I just mount the shares and configure the desktop or a stand alone session, I just configure the desktop [Smile]

I am just looking for a nice way to rapidly check what kind of session it is.
I already use @IPADRESS0, but in some case the result is not good (still the network adress)
and the script need to be run twice to get the rignt value
Exemple:
network session : 192.0.0.1
RAS session : 192.250.0.1
stand alone : 127.0.0.1 or EMPTY
Is it more clear [Smile]