Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Same User, Different homefolder depending on site

Posted on 2008-06-20
3
Medium Priority
?
242 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 1500 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

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

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

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.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

688 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