Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

Same User, Different homefolder depending on site

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
OddyIT
Asked:
OddyIT
1 Solution
 
YourReferenceCommented:
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
 
OddyITAuthor Commented:
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
 
fhmcCommented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now