Hey everyone! I'm currently developing a script for mapped drives on our AutoPilot machines, and I've hit a snag. The script works well for creating drives and tasks, but I'm faced with two error messages: "The local drive is already in use" and "A domain controller cannot be contacted to service your authentication request" when I try to access the drives in Windows Explorer. I've noticed errors in the Security-Kerberos log, and while I imported the CA certificate, it didn't solve the issue. I've also experienced some strange behavior where I had to log in using my domainusername format rather than my email, but now it doesn't accept that. Does anyone have suggestions on how to tackle this?
2 Answers
Have you tried manually mapping a drive from one of the affected machines? It sounds like there might be multiple issues beyond just your script. It might give you a better idea of what's wrong.
First, you should check if your devices are getting a Kerberos ticket correctly. Are they hybrid joined or fully Azure AD joined? Also, make sure your device has connection to a domain controller and that Kerberos UDP traffic is permitted.
I used to be able to map drives manually, but that stopped working recently. Not sure what caused that.