Solved

Same User, Different homefolder depending on site

Posted on 2008-06-20
3
224 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
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If, like me, you have a lot of Dell servers in the estate you manage this article should save you a little time. When attempting to login to iDrac on any server I would be presented with two errors. The first reads "Do you want to run this applicati…
The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now