How to fix The specified network password is not correct. powershell error

calebslater 0 Reputation points
2023-02-02T17:41:17.9533333+00:00

I am trying to run a PowerShell script and am being returned with the following error. Is anyone able to help? I have tried to run on the server and on my laptop and still being returned the same error after I authenticate using the domain admin account

The specified network password is not correct.

At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.1.0\netFramework\ExchangeOnlineManagement.psm1:729 char:21

+                     throw $_.Exception.InnerException;

+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : OperationStopped: (:) [], CryptographicException

    + FullyQualifiedErrorId : The specified network password is not correct.
Windows for business Windows Server User experience PowerShell
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-02-03T16:57:26.4233333+00:00

    Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.

    The error "The specified network password is not correct" in PowerShell can occur when trying to connect to a network resource using a wrong username or password. To fix this error, follow these steps:

    1. Check the username and password you are using to make sure they are correct.
    2. Make sure you are using the right syntax to provide the username and password in your PowerShell command.
    3. If you're still having trouble, try resetting the password for the account you're trying to use and then use the updated password in your PowerShell command.

    If none of the above steps work, check to see if the network resource you are trying to connect to is available and accessible. If it's not, you won't be able to connect to it using PowerShell.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

  2. Florez Gutierrez, Alex Fernando 0 Reputation points
    2023-08-05T22:50:36.12+00:00

    Coincidentally, this same error is happening to me when running the file, the funny thing is that the credentials are correct since if I enter the unit using the credentials it works and after entering the unit with the credentials and I run the script again if it works.

    Here is the code that I-m using
    $User = "Domain\user"

    $PWord = ConvertTo-SecureString -String "Password" -AsPlainText -Force

    $Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord

    New-PSDrive -Name "D" -Root "\server\folder" -Persist -PSProvider "FileSystem" -Credential $cred

    Error message

    User's image

    use same credentials accessing to the drive directly

    User's image

    Success access to the shared folder

    User's image

    When i ran the PowerShell Script a second time after access to the shared folder manually works but a new error message is being shown.

    User's image

    User's image

    If any of you guys have any idea will appreciate it.

    0 comments No comments

  3. Olivier BERTRAND 0 Reputation points
    2024-01-23T10:01:50.2733333+00:00

    Hi, I know that the ticket is dated but for information, I encounter the same problem when accessing resources hosted on a NetApp solution and only NetApp with domain admin and only domain admin accounts.
    Same error : The specified network password is not correct. This is not a problem chair-keyboard interface :)

    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.