Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
HI - I need help. I am trying to amend our login script so that when users log on a drive will be mapped for them. I also need to add a username and password into the script to allow them access.
Although the users are part of the same company, they are set up on a different domain, so this is why I need a password authenticating them.
I have found the .bat file I need to amend and I have made sure that all the users profiles have this in already!! I just need to amend it!!Please can someone help!! Any help would be great!

Start by explaining the different domains. Are they in the same Forest?
Imagine the power if you knew how to internet search

HI
It is a bit of a strange set up.
We have 3 domains, not in the same forest. then we have branches outside the domain that are set up with local accounts but connect in through vpn connection. So for the domain I need to map the drive onto, they connect to us through vpn, but apart from that we don't have them in the same AD forest, so their user details are sat on a different server in the branch and we do not see their address book from our site.
Hope this helps a bit!!
Cheers

Make sure to enable "Allow cross-forest user policy and roaming user profiles" via a GPO on both domains.
I'm confused as to what you need help with. The script itself, or getting the script to execute across forests.
"Computer security." — Oxymoron

Firstly i was wanting to amend the script on the server which the users connect to, which will map the relevant drive for them when they log on, I also need to put in there the username and password from our site to allow them to authenticate.
I have mapped manual drives at the moment and used one of our usernames from this site and this works fine until they log off, So I need something that will map the drive and keep the password authenticated everyday!
Cheers!

If your having problems keeping the drive mapped, and your using net use to map the drive, add the /persistent:yes switch to your script, which is equivalent to checking Reconnect at logon in the GUI.
"I also need to put in there the username and password from our site to allow them to authenticate."
The only way that would work, is if all your users used the same username and password.
Unfortunately there is no %password% variable like there is for the username (%username%).
Just curious, have you created a cross-forest two way trust?
"Computer security." — Oxymoron

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |