locked
How to resolve net : System error 67 has occurred. RRS feed

  • Question

  • My following code is giving net : System error 67 has occurred.

    $dbServer = "192.164.2.14"
    $username = "jmallick"
    $password = "Password@3"

    net use $dbServer $password /USER:$username  
    Get-ChildItem F:\goldenCopy | Where-Object {$_.mode -match "d"}

    When I run this code it is giving me

    PS SQLSERVER:\> D:\Eclipse_Repository\localtest\remote.ps1
    net : System error 67 has occurred.
    At D:\Eclipse_Repository\localtest\remote.ps1:6 char:1
    + net use $uncServer $password /USER:$username
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (System error 67 has occurred.:String) [], RemoteException
        + FullyQualifiedErrorId : NativeCommandError

    Did some googling but not helping me. Any thoughts on this ?

    Monday, July 2, 2018 9:04 AM

All replies