Troubleshooting Code Error 8007052E Logon Failure: unknown user name or bad passwordIntroduction to Error Code 8007052EThis error, code 8007052E usually occurs when you try to map a network drive with a VBScript. My suggestion is that there is a typo in the username or the password. Error messages beginning 8007xxxx mean there is a problem with Windows rather than VBScript itself. The Symptoms You Get 8007052EWhen you execute the script you get a message box. The VBScript does execute as you hoped. One possibility is that the password needed by MapNetworkDrive has been misspelt or omitted. (Please send in a screen shot of the Error message in have this problem.) The Cause of Code 8007052EYour VBScript contains an illegal username or password. Check the spelling of your objects in the script. The source WshNetwork.MapNetworkDrive, help to track down the faulty part of the script. The SolutionCheck the spelling of your username and password. In the case of runtime errors you can use a work-around. Add this line: On Error Resume Next. Guy Recommends: SolarWinds’ Free Bulk Import ToolImport users from a spreadsheet. Just provide a list of the users with their fields in the top row, and save as .csv file. Then launch this FREE utility and match your fields with AD’s attributes, click and import the users. Optionally, you can provide the name of the OU where the new accounts will be born. Download your FREE bulk import tool. If you need more comprehensive software, download a free trial of SAM (Server & Application Monitor) Example VBScript showing error 8007052EError Password StLouis Should have been StL0u1s Set objNetwork = CreateObject("WScript.Network") strDriveLetter = "P:" PowerShell Error Code 8007052EThe situation: you are trying to assign a PowerShell logon script to a Group Policy, the drive does not map. Solution: Wrap the powershell.ps1 file in a batch file. ::Batch File for PowerShell Script
|