Solved

Same User, Different homefolder depending on site

Posted on 2008-06-20
3
239 Views
Last Modified: 2013-12-02
I'm setting up 2 sites, same AD but diffrent file-server.
How can I give a user 2 homefolders. One for when he logs in at site 1 and one at site 2?
0
Comment
Question by:OddyIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Expert Comment

by:YourReference
ID: 21835200
The best solution would be based on a Login Script.

In order to provide you with more details you have to let me know the following.

1. Is there a different File and Print server at each site?
2. Do you have an each site defined in Active Directory Sites and Services?
3. Do you have any OU for each site?

Basically you would create a login script that would detect either:

Enviornmental Variable
IP Address
Submet
other

then map a H: drive via NET USE to the location
0
 

Author Comment

by:OddyIT
ID: 21835272
Details:
1. Yes, there is a different file-server at each location. The print-server is also different. But to make it more difficult, there are canon copy-machine at each location. Site B has to be able to print to a big copier (copy-center for the school) at site A.
2. Each site has been defined.
3. AD is the same. I have a few OU's (Student, Teachers, Staff, ComputerPerRoom, Groups)

I have succeded in using net use. But how do I detect the diffrent sites?
0
 
LVL 7

Accepted Solution

by:
fhmc earned 500 total points
ID: 21835498
I'm confident there's a better way than the following, but this is the first approach that came to mind:

1.   say, site 1 is on the 192.168.1.0/24 network and the gateway is 192.168.1.1, also, say, site 2 is on the 192.168.2.0/24 network and the default gateways is 192.168.2.1...

that said, the following approach may prove usefull.

findnet.bat
:: am I in 192.168.1.1
route print| find "192.168.1.1"
:: if so, set localnet to 1.1
if not errorlevel 1 set localnet = 1.1
:: am I in 192.168.2.1
route print| find "192.168.2.1"
:: if so, set localnet to 2.1
if not errorlevel 1 set localnet = 2.1      
:end
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use NetMotion Mobility on your PC and plan to upgrade to Windows 10, it may not work unless you take these steps.
Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question