Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-11-28
7
Medium Priority
?
52 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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 11

Accepted Solution

by:
Scott Silva earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

660 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