cannot access default share \\IP\c$ error 0x80070043

Gustavo Bonasso 101 Reputation points
2021-05-01T08:55:39.74+00:00

hi. this was working just fine until yesterday that i realized i wasn't able to access any share resource over the network, not for my hyper-v VMs or via VPN to some customer site.

basically i don't get the prompt for credentials. and if i telnet IP 445, i can access the service.

my OS is 10.0.19042

Image

SMB1 is enabled

Image

i'm pretty sure this behavior started after some updates applied recently.

Firewall profiles are OFF for my local and remote machines

Image

Image

any tip?

thanks.

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

Accepted answer
  1. Gustavo Bonasso 101 Reputation points
    2021-05-09T11:10:58.997+00:00

    OK, so issue was solved after doing this:

    1- remove WSL feature
    2- Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation
    DependOnService it was bad.. (didn't took a screenshot, so I can't remember exactly the previous config, I THINK IT WAS P9NP and nothing else)
    I've delete the MultiSZ value, restarted machine.
    LanmanWorkstation Service wasn't starting.
    I took the example of one of my VMs and set the DependOnService like this:
    94946-image.png

    restarted localmachine
    voilá
    i get the prompt, enter creds
    95062-image.png

    and i'm in
    94947-image.png

    I will try later enabling WSL again.. if i encounter the same issue, I will use a Debian VM instead of WSL.

    0 comments No comments

10 additional answers

Sort by: Most helpful
  1. Gustavo Bonasso 101 Reputation points
    2021-05-07T14:55:48.653+00:00

    @Anonymous after these KBs i had a list of all the credentials saved and the issue remained. at some point i've tried removing them and set them again.
    this doesn't work. instead of rolling back some KBs, i will create a W10 1709 VM on the same virtual network and let u know how it goes.

    @MotoX80 i've tried the script and i get:

    PS C:\Windows\system32> C:\Users\gbonasso\Desktop\testSMB.ps1  
    SmbTest.ps1 Version 1.5 (15-Apr-2020)  
    Running on DLT-PAR-GBONASS as user dalet\gbonasso  
    You are running Powershell in administrator mode.  
    You are a member of the administrators group.  
    Please enter the name of the target machine.: 192.168.37.159  
    FQDN = DLT-PAR-GBONASS.  
    Analyzing network adapters  
     Found - vEthernet (Default Switch) - Hyper-V Virtual Ethernet Adapter  
     Found - Ethernet - Intel(R) Ethernet Connection (4) I219-V  
     Ethernet status is Disconnected  
     Found - Ethernet 2 - Fortinet Virtual Ethernet Adapter (NDIS 6.30)  
     Ethernet 2 status is Disconnected  
     Found - Wi-Fi - Intel(R) Dual Band Wireless-AC 8265  
      IP Address is 192.168.1.42, Gateway is 192.168.1.1  
      Gateway Ping successful  
     Found - Ethernet 4 - PANGP Virtual Ethernet Adapter  
     Ethernet 4 status is Disconnected  
     Found - Bluetooth Network Connection - Bluetooth Device (Personal Area Network)  
     Bluetooth Network Connection status is Disconnected  
     Found - Local Area Connection 2 - PPPoP WAN Adapter  
     Local Area Connection 2 status is Disconnected  
     Found - vEthernet (DALET) - Hyper-V Virtual Ethernet Adapter #2  
     vEthernet (DALET) status is Not Present  
     Found - Local Area Connection - TAP-Windows Adapter V9  
     Local Area Connection status is Disconnected  
     Found - OpenVPN Wintun - Wintun Userspace Tunnel  
     OpenVPN Wintun status is Disconnected  
     Found - Ethernet 3 - Fortinet SSL VPN Virtual Ethernet Adapter  
     Ethernet 3 status is Disconnected  
    This computer's DNS domain is dalet.local  
    Doing name lookup on target system 192.168.37.159  
    Found IPV6 address   
    Now lets look at the target IP.  
    Lookup failed for   
    This is a problem!!!!!  
    I will attempt to continue using the IP address in place of the computer name.  
    Testing port 135...  
    Resolve-DnsName : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetTCPIP\Test-NetConnection.psm1:313 char:74  
    + ... ctionResult.DNSOnlyRecords = @( Resolve-DnsName $ComputerName -DnsOnl ...  
    +                                                     ~~~~~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Resolve-DnsName], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.DnsClient.Commands.ResolveDnsName  
       
    Resolve-DnsName : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetTCPIP\Test-NetConnection.psm1:314 char:79  
    + ... Result.LLMNRNetbiosRecords = @( Resolve-DnsName $ComputerName -LlmnrN ...  
    +                                                     ~~~~~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Resolve-DnsName], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.DnsClient.Commands.ResolveDnsName  
       
    Resolve-DnsName : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetTCPIP\Test-NetConnection.psm1:315 char:78  
    + ... nResult.BasicNameResolution = @(Resolve-DnsName $ComputerName -ErrorA ...  
    +                                                     ~~~~~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Resolve-DnsName], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.DnsClient.Commands.ResolveDnsName  
       
    Port 135 test was successful.  
    Testing SMB access...  
    Resolve-DnsName : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetTCPIP\Test-NetConnection.psm1:313 char:74  
    + ... ctionResult.DNSOnlyRecords = @( Resolve-DnsName $ComputerName -DnsOnl ...  
    +                                                     ~~~~~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Resolve-DnsName], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.DnsClient.Commands.ResolveDnsName  
       
    Resolve-DnsName : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetTCPIP\Test-NetConnection.psm1:314 char:79  
    + ... Result.LLMNRNetbiosRecords = @( Resolve-DnsName $ComputerName -LlmnrN ...  
    +                                                     ~~~~~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Resolve-DnsName], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.DnsClient.Commands.ResolveDnsName  
       
    Resolve-DnsName : Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetTCPIP\Test-NetConnection.psm1:315 char:78  
    + ... nResult.BasicNameResolution = @(Resolve-DnsName $ComputerName -ErrorA ...  
    +                                                     ~~~~~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Resolve-DnsName], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.DnsClient.Commands.ResolveDnsName  
       
    SMB test was successful.  
    Looking for shares...  
    Initial net view failed, trying with credentials...  
    A userid that has administrator access works best.  
    Please enter a userid that has admin access.: .\administrator  
    Please enter the password.: xxxxxxxxx  
    net.exe : System error 67 has occurred.  
    At C:\Users\gbonasso\Desktop\testSMB.ps1:180 char:5  
    +     net.exe use \\$computer\ipc$ "$pswd"  /user:$userid  
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
        + CategoryInfo          : NotSpecified: (System error 67 has occurred.:String) [], RemoteException  
        + FullyQualifiedErrorId : NativeCommandError  
       
    The network name cannot be found.  
    Checking to see if Server service is running.   
    Get-Service : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Users\gbonasso\Desktop\testSMB.ps1:182 char:50  
    +     Get-Service -Name LanmanServer -ComputerName $computer  
    +                                                  ~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Get-Service], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.GetServiceCommand  
       
    net.exe : System error 1702 has occurred.  
    At C:\Users\gbonasso\Desktop\testSMB.ps1:184 char:16  
    +     $shares = (net.exe view \\$computer)  
    +                ~~~~~~~~~~~~~~~~~~~~~~~~  
        + CategoryInfo          : NotSpecified: (System error 1702 has occurred.:String) [], RemoteException  
        + FullyQualifiedErrorId : NativeCommandError  
       
    The binding handle is invalid.  
    I found these shares.  
    Testing admin shares  
    Unable to access C$ share.  
    get-childitem : Cannot find path '\\\c$' because it does not exist.  
    At C:\Users\gbonasso\Desktop\testSMB.ps1:202 char:10  
    + $files = get-childitem \\$computer\c$ -ErrorAction SilentlyContinue - ...  
    +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
        + CategoryInfo          : ObjectNotFound: (\\\c$:String) [Get-ChildItem], ItemNotFoundException  
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand  
       
    You appear to not have administrator access on the remote system.  
    Analyzing share permissions  
    Invoke-command failed.  (Did you run "winrm quickconfig" on the remote machine?)  
    Trying again using alternate credentials.  
    Invoke-Command : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.  
    At C:\Users\gbonasso\Desktop\testSMB.ps1:223 char:38  
    +         Invoke-Command -ComputerName $computer -ScriptBlock {get-smbs ...  
    +                                      ~~~~~~~~~  
        + CategoryInfo          : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException  
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand  
       
      
    Remote LmCompatibilityLevel is   
    Local  LmCompatibilityLevel is 3  
    Refer to https://blogs.technet.microsoft.com/miriamxyra/2017/11/07/stop-using-lan-manager-and-ntlmv1/  
      
    PS C:\Windows\system32>   
    

    i understand your suggestion, but it is not practical. i cannot add a domain account on a remote workgroup machine. the issue here is that i used to get a prompt, where i passed credentials and now i don't get the prompt.
    on the script i passed the remote local administrator and it's creds
    the nslookup fails because the remote machine is not on my localmachine domain, but a workgroup.


  2. Gustavo Bonasso 101 Reputation points
    2021-05-07T18:46:08.46+00:00

    @Anonymous theory of KB dismissed. i've updated the VM to the 19042 with all updates, i've joined to a test domain, logged in with that user and then accessed the share on the workgroup machine, without even a prompt.
    i'm starting to suspect there's a GPO applying on my localmachine that disable guest authentication.

    @MotoX80 here the results of the script as u said... much better

    SmbTest.ps1 Version 1.5 (15-Apr-2020)  
    Running on DLT-PAR-GBONASS as user dalet\gbonasso  
    You are running Powershell in administrator mode.  
    You are a member of the administrators group.  
    Please enter the name of the target machine.: XXXXXXXX  
    FQDN = DLT-PAR-GBONASS.  
    Analyzing network adapters  
     Found - vEthernet (Default Switch) - Hyper-V Virtual Ethernet Adapter  
     Found - Ethernet - Intel(R) Ethernet Connection (4) I219-V  
     Ethernet status is Disconnected  
     Found - Ethernet 2 - Fortinet Virtual Ethernet Adapter (NDIS 6.30)  
     Ethernet 2 status is Disconnected  
     Found - Wi-Fi - Intel(R) Dual Band Wireless-AC 8265  
      IP Address is 192.168.1.42, Gateway is 192.168.1.1  
      Gateway Ping successful  
     Found - Ethernet 4 - PANGP Virtual Ethernet Adapter  
     Ethernet 4 status is Disconnected  
     Found - Bluetooth Network Connection - Bluetooth Device (Personal Area Network)  
     Bluetooth Network Connection status is Disconnected  
     Found - Local Area Connection 2 - PPPoP WAN Adapter  
     Local Area Connection 2 status is Disconnected  
     Found - vEthernet (DALET) - Hyper-V Virtual Ethernet Adapter #2  
     Found - Local Area Connection - TAP-Windows Adapter V9  
     Local Area Connection status is Disconnected  
     Found - OpenVPN Wintun - Wintun Userspace Tunnel  
     OpenVPN Wintun status is Disconnected  
     Found - Ethernet 3 - Fortinet SSL VPN Virtual Ethernet Adapter  
     Ethernet 3 status is Disconnected  
    This computer's DNS domain is dalet.local  
    Doing name lookup on target system XXXXXXXX  
    Name lookup failed!!!!  
    Please enter the IP address of the target system.: 192.168.37.159  
    I will attempt to continue using the IP address in place of the computer name.  
    Now lets look at the target IP.  
    Target computer's DNS domain is mshome.net  
    Domain mismatch. This is a potential problem.  
    Your DNS Search Suffix list does not contain mshome.net  
    This is a problem and should be fixed!!!!!!!   
    Testing port 135...  
    Port 135 test was successful.  
    Testing SMB access...  
    SMB test was successful.  
    Looking for shares...  
    Net view ran.  
    I found these shares.  
    Shared resources at \\192.168.37.159  
      
      
      
    Share name       Type  Used as  Comment              
      
    -------------------------------------------------------------------------------  
    DALET_INSTALLER  Disk           DIS Shared Folder    
    DaletPlus        Disk           DIS Shared Folder    
    DaletPlusData    Disk           DIS Shared Folder    
    SHARE            Disk                                
    sysint           Disk                                
    Users            Disk                                
    The command completed successfully.  
      
      
    Found 32 files/folders in root of \\192.168.37.159\DALET_INSTALLER share.  
      
    IdentityReference                                                            FileSystemRights  
    -----------------                                                            ----------------  
    NT SERVICE\TrustedInstaller                                                       FullControl  
    NT SERVICE\TrustedInstaller                                                         268435456  
    NT AUTHORITY\SYSTEM                                                               FullControl  
    NT AUTHORITY\SYSTEM                                                                 268435456  
    BUILTIN\Administrators                                                            FullControl  
    BUILTIN\Administrators                                                              268435456  
    BUILTIN\Users                                                     ReadAndExecute, Synchronize  
    BUILTIN\Users                                                                     -1610612736  
    CREATOR OWNER                                                                       268435456  
    APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES            ReadAndExecute, Synchronize  
    APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES                            -1610612736  
    APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES ReadAndExecute, Synchronize  
    APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES                 -1610612736  
      
      
      
    Found 21 files/folders in root of \\192.168.37.159\DaletPlus share.  
      
    IdentityReference                                                            FileSystemRights  
    -----------------                                                            ----------------  
    NT SERVICE\TrustedInstaller                                                       FullControl  
    NT SERVICE\TrustedInstaller                                                         268435456  
    NT AUTHORITY\SYSTEM                                                               FullControl  
    NT AUTHORITY\SYSTEM                                                                 268435456  
    BUILTIN\Administrators                                                            FullControl  
    BUILTIN\Administrators                                                              268435456  
    BUILTIN\Users                                                     ReadAndExecute, Synchronize  
    BUILTIN\Users                                                                     -1610612736  
    CREATOR OWNER                                                                       268435456  
    APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES            ReadAndExecute, Synchronize  
    APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES                            -1610612736  
    APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES ReadAndExecute, Synchronize  
    APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES                 -1610612736  
      
      
      
    Found 42 files/folders in root of \\192.168.37.159\DaletPlusData share.  
      
    IdentityReference                 FileSystemRights  
    -----------------                 ----------------  
    NT AUTHORITY\SYSTEM                    FullControl  
    BUILTIN\Administrators                 FullControl  
    CREATOR OWNER                            268435456  
    BUILTIN\Users          ReadAndExecute, Synchronize  
    BUILTIN\Users                                Write  
      
      
      
    Found 10 files/folders in root of \\192.168.37.159\SHARE share.  
      
    IdentityReference                 FileSystemRights  
    -----------------                 ----------------  
    NT AUTHORITY\SYSTEM                    FullControl  
    BUILTIN\Administrators                 FullControl  
    BUILTIN\Users          ReadAndExecute, Synchronize  
    BUILTIN\Users                           AppendData  
    BUILTIN\Users                          CreateFiles  
    CREATOR OWNER                            268435456  
      
      
      
    Found 160 files/folders in root of \\192.168.37.159\sysint share.  
      
    IdentityReference                 FileSystemRights  
    -----------------                 ----------------  
    NT AUTHORITY\SYSTEM                    FullControl  
    BUILTIN\Administrators                 FullControl  
    BUILTIN\Users          ReadAndExecute, Synchronize  
    BUILTIN\Users                           AppendData  
    BUILTIN\Users                          CreateFiles  
    CREATOR OWNER                            268435456  
      
      
      
    Found 6 files/folders in root of \\192.168.37.159\Users share.  
      
    IdentityReference                 FileSystemRights  
    -----------------                 ----------------  
    Everyone                               -1610612736  
    Everyone               ReadAndExecute, Synchronize  
    NT AUTHORITY\SYSTEM                    FullControl  
    BUILTIN\Administrators                 FullControl  
    BUILTIN\Users          ReadAndExecute, Synchronize  
    BUILTIN\Users                          -1610612736  
      
      
    Testing admin shares  
    Found 7 files/folders in c$ share.  
    Found 97 files/folders in admin$ share.  
    Analyzing share permissions  
    Invoke-command failed.  (Did you run "winrm quickconfig" on the remote machine?)  
      
    Remote LmCompatibilityLevel is   
    Local  LmCompatibilityLevel is 3  
    Refer to https://blogs.technet.microsoft.com/miriamxyra/2017/11/07/stop-using-lan-manager-and-ntlmv1/  
      
    PS C:\Windows\system32>   
    

    winrm quickconfig was executed on remote machine.
    Remote LmCompLevel is 3 (edited manually)
    I've tried adding a user on Remote machine, no luck. I don't get no prompt, same error
    94902-1.png


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.