We help IT Professionals succeed at work.

Need Suggestion : When Users Login, A Menu Displays Mapping Choises

327 Views
Last Modified: 2012-05-06
Where I work, I have many users that "float" between locations.  We do use logon scripts in our domain, but quite frequently one or two mappings can be wrong for whatever reason and then they pull their profile or even applications over the WAN instead of the LAN causing LOTS of delay.  Before, I've made a simple ANSI menu that asks what location they are at and maps them manually in case they have trouble.  I've found a greart program called Mobile Net Switch, but it's way too detailed and costly for what I'm looking for.  We have 6 locations with servers local at each.  

Any Suggestions?

Thanks!
Comment
Watch Question

Commented:
What language are you login scripts?  I've written scripts that do different things based on the IP subnet.  Downside is someone has to maintain the information.  Upside is that it can be built to be a little more infallible than a user clicking the right location.
Head of ICT
Top Expert 2009
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
I think bluntTony's suggestion is a good one but I believe it's applicable to an environment where the computers are in fixed locations.  If your "floaters" are mobile and take their systems with them, that is not the way you'd want to set them up.
You can, however, assign different login scripts to each AD site.  I think.  I haven't assigned GPs to sites before so have no experience to draw on there.
bluntTonyHead of ICT
Top Expert 2009

Commented:
Maybe BenKellerman can clarify - I understood the question to be that the users are moving from location to location, i.e. sitting at machines fixed in each location.
However I think that linking the GPO to the site should work also. If a user is moving their own laptop around, when it logs in to another physical site, then the appropriate GPO would be applied. I can't see why you couldn't employ loopback processing to a GPO linked to a site. The only thing to be aware of would be that it's at the bottom of the order of precendence, after local settings.
So in effect you would be running a script depending on the IP subnet the machine logs in to.
Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT

Commented:
I think a better option would be to setup the sites and services for both subnets, and use a WMI filter on the GPO.

Example...
Namespace: root\cimv2
Query: SELECT * FROM Win32_NTDomain WHERE ClientSiteName = 'Your-Site-Name'

The above should only apply a Group policy object if the user is logged on within the specified site subnet.

Another option would be to set a machine variable... using setx.exe.... to set the networkd ID, which can be used within the script to allow or exclude execution of specific lines in the script.
One of my previous answers...
https://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_22746765.html
bluntTonyHead of ICT
Top Expert 2009

Commented:
I don't think running a WMI query is necessary - linking a GPO to a site as mentioned earlier does exactly the same - it will apply only to machines in that site. Furthermore, if you used WMI queries, you would have to link them all to the same OUs, meaning that the machine/user would have to read all of the GPOs in order to decide which one applies to them, possibly slowing down the process.
Providing that the correct subnet objects are linked to the correct sites (which they already should be), linking the GPOs at the site level will mean the correct script applies without having to read unnecessary GPOs.
I agree that you could create one script to apply to all users, and have the script decide which site it's on and map drives accordingly, but you don't have to use WMI to retrieve the IP address etc.., just use the following VBScript (strCurrentSite will hold the name of the current site which you can then do a simple Select/Case structure)...
 
 

Set oAdInfo = CreateObject("ADSystemInfo")
strCurrentSite = oAdInfo.SiteName

Open in new window

Ron MalmsteadInformation Services Manager
CERTIFIED EXPERT

Commented:
My option is for gpo's that aren't linked to site, but rather an OU.
good point though...... if you link it to the site, then it will already filter.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.