Solved

using a .bat to map drives having issues after moving server to domain

Posted on 2016-11-28
7
48 Views
Last Modified: 2016-12-01
We had a server with shares that wasn't part of our domain but we did map drives to it for some users. We used the /savecred switch and entered the local username and password the first time it ran and it would map just fine. But we moved the server on to our domain removed the savecred switch and the script stops every time on the mapping to the server. If I enter my domain creds when it prompts me for creds it does map so my permissions seem to be fine. How can I force these drive mappings to use the domain creds the users is logged in with for the mapping?
0
Comment
Question by:bankadmin
[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
  • 3
7 Comments
 
LVL 6

Expert Comment

by:efrimpol
ID: 41904278
After you added the computer to the domain, did you recreate the share permissions on the shared folder and give 'Domain Users' access?

Also, from the user's workstation, can you now navigate to the share by selecting Run "\\domainserver\share"?
0
 

Author Comment

by:bankadmin
ID: 41904381
I did change the permissions do work with domain groups and that part is working because I can access them..

Yes I can access the share when I put in what you suggested.
I can access the share if I manually put in my domain creds when the script runs also..
Trying to figure out why I have to manually put in my creds for these drives but not others that I get mapped to via logon script
0
 
LVL 6

Expert Comment

by:efrimpol
ID: 41904394
"We used the /savecred switch and entered the local username and password the first time it ran and it would map just fine"

So you do not need for the users to use local accounts anymore, only domain users, right?

Also, if you run "\\servername", do you now see all the shares you have on this server and are you then able to right-click on the shared folder and select "Map network drive"?
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:bankadmin
ID: 41904442
Correct we want the users to use there personal domain creds instead of the local account on the server.

The shares do popup but map network drive is greyed out.
0
 
LVL 6

Expert Comment

by:efrimpol
ID: 41904452
You may not have File/Print Sharing set correctly on the server.
0
 
LVL 10

Accepted Solution

by:
Scott Silva earned 500 total points
ID: 41904576
Did you clear the users old credentials on the workstations? Once you used /savecred it stored the credentials locally on each workstation that accessed the server. Without changing the name of the server, the workstations will continue to use those saved credentials.
When you use the /savecred switch to save/reuse credentials in a runas (and presumably net use) command line, the credentials are saved on disk as part of the user's profile in a "credentials cache".
This cache is located under the %APPDATA%\Microsoft\Credentials path
Delete this cache file and you effectively remove saved credentials.

I can't find a command to delete only one credential, you might have to manually do it if there are other saved credentials you want to keep.
0
 

Author Closing Comment

by:bankadmin
ID: 41908830
That was it..

Thanks
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

617 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