>G'day Peter,
>
>The way I approach this is to consider one domain my "home" domain (in this case, probably OTTNT1). When you're plugged in there, there's nothing else to do.
>
>When you plug in to another domain (say OTT2), and you need to access resources on a member of that domain (let's say the computer's called OTT2PDC), connect to the IPC share of that member using the following command line:
>
NET USE \\OTT2PDC\IPC$ /u:OTT2\< username >
>Now, you will have access to all the resources on OTT2PDC as if you were logged in as < username > on the OTT2 domain.
>
You can do the same thing using WNetAddConnetion3(), there's a sample implementation in my NETRESOURCE class in the Files section.
>Check out the docs for other neat NET commands.
>
>Cheers,
>
>Andrew
>
>>I have the following scenario:
>>A domain in one office called OTTNT1
>>
>>A domain in the homeoffice called OTT2
>>
>>A peer networked office elsewere
>>
>>A laptop carried between the 3
>>
>>When I physically plug in my network cable and boot up I want to be able to select the domain I want to connect to depending on the location and have the laptop be authenticated and I need access to all resourses on the network I am connected to.
>>As I am set up I see verything on OTTNT1 and only the laptop elsewhere.
>>
>>There must be a way to accommodate the raoming worrier.
>>
>>Peter