Link to home
Start Free TrialLog in
Avatar of rstuemke
rstuemke

asked on

Windows 10 - Cannot Map/Access Network Drives - Will Not Accept Credentials

Have several login scripts which reside on the primary domain controller (PDC)\NETLOGON Folder.  They are used to map certain network drives to different groups of users.  These have worked for years.   Installed Win10 on a test PC and now they do not work.

When the script is ran it asks for credentials and will not accept any credentials.  Shows ACCESS DENIED at bottom of credentials box.

The script is initiated thru the shortcut  \\pdc\netlogon\<script name>.cmd

The credentials are for PDC, like its wanting them for the NETLOGON folder.   Please advise.  Thanks.


Here is a sample script:



REM - START CMD
@echo Off



start "Group Policy Update" gpupdate /force

net config server /AUTODISCONNECT:65535


Echo Deleting Network Drives
rem net use * /delete

net use G: /delete /y
net use H: /delete /y
net use I: /delete /y
net use J: /delete /y
net use K: /delete /y
net use L: /delete /y
net use M: /delete /y
net use N: /delete /y
net use O: /delete /y
net use P: /delete /y
net use Q: /delete /y
net use R: /delete /y
net use S: /delete /y
net use T: /delete /y
net use U: /delete /y
net use V: /delete /y
net use W: /delete /y
net use X: /delete /y
net use Y: /delete /y
net use Z: /delete /y

Echo Connnecting Network Drives



Start net use U: "\\1730W22Q87Y1\Academy Common" /persiStent:no
start net use W: "\\1730W22Q87Y1\Academy Workers" /persiStent:no
start net use K: "\\1730W22Q87Y1\Academy Common\Academy Kitchen" /persiStent:no
start net use Y: "\\1730W22Q87Y1\Academy Yearbook" /persiStent:no



WUAUCLT.EXE /RESETAUTHORIZATION /DETECTNOW
WUAUCLT.EXE /REPORTNOW


rem Start Messenger Service
net start messenger


REM - END CMD
Avatar of Scott Gorcester
Scott Gorcester
Flag of United States of America image

Is this Win10 PC joined to your domain?

Scott
Which Version of Windows 10

You need at least Windows 10 Pro

Home Editions will not connect to AD
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rstuemke
rstuemke

ASKER

Looking into GPO for Drive mappings.   The mapping script has some advantages, in that I can change, add or delete entries and have the users run it immediately and get the change implemented on their PCs, whereas GPO replication can be tediously slow, even with GPUPDATE /FORCE or forcing GPO update thru the GPO Management Console.
Windows 10 Pro the version generally released last week.   Windows domain (PDC in Win 2012 Server Standard R2)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
They are mapped immediately at next logon. There are no advantages in scripts when it comes to mappings.
OK.   Looks like I will map thru GPO.  One followup question .....  is there any easy way to do this with Powershell?