Solved

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

Posted on 2016-11-28
7
17 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
  • 3
  • 3
7 Comments
 
LVL 5

Expert Comment

by:efrimpol
Comment Utility
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
Comment Utility
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 5

Expert Comment

by:efrimpol
Comment Utility
"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
Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

 

Author Comment

by:bankadmin
Comment Utility
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 5

Expert Comment

by:efrimpol
Comment Utility
You may not have File/Print Sharing set correctly on the server.
0
 
LVL 9

Accepted Solution

by:
Scott Silva earned 500 total points
Comment Utility
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
Comment Utility
That was it..

Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Issue with cURL on Windows 7 65
Domain Printers Not Listed 17 38
Event ID: 5719 / Source: NETLOGON 9 52
Raid problem 10 30
Recently, I was asked to look into SCCM 2007 by my employer, having a degree of experience of earlier versions of SMS and some previous SCCM knowledge I didn't expect the procedure to involve to much time. I read a number of guides concerning it…
A procedure for exporting installed hotfix details of remote computers using powershell
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

763 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

11 Experts available now in Live!

Get 1:1 Help Now