On Win11Home open Powershell_ISE and copy/paste this script. Put the name of the Win10ProA computer in the $computer variable.
cls
$computer = 'win10proa' # put your computer name here.
"==== Basic network test ===="
Test-NetConnection -ComputerName $computer -CommonTCPPort SMB | Select-Object -Property RemoteAddress, TcpTestSucceeded
""
"==== Share test ===="
""
net.exe view \\$computer | Where-Object {$_ -ne ""}
""
"==== Access test ===="
""
(net view \\$computer) | % { if($_.IndexOf(' Disk ') -gt 0){
$share = "\\$computer\$($_.Split(' ')[0])"
$files = Get-ChildItem -Path $share
"Share name is {0}, root file count is {1}" -f $share, $files.count
} }
Run the script. It should look like this.
If you get an access denied error, then on the Win10ProA computer, run this script. Verify that the account that you logged to Win11Home with is defined on Win10ProA and has access to the both the share and folder permissions.
Do you use the Windows credential manager to specify a different account to use to access Win10ProA? You may need to check the security event log to see the name of the account being rejected.
cls
"The following local accounts have been defined."
Get-LocalUser
""
$shares = get-smbshare | where-object { ($_.Name -NE 'IPC$') -and ($_.Name -NE 'Print$') -and ($_.Name -NE 'C$') -and ($_.Name -NE 'Admin$') }
foreach ($share in $shares) {
'--------------------'
"--- {0}" -f $share.name
'--------------------'
''
'Share permissions.'
Get-SmbShareAccess -inputobject $share | Format-table -property Name, AccountName, AccessControlType, AccessRight
''
"Folder name and permissions."
''
$share.Path
Get-Acl -path $share.Path | select-object -ExpandProperty access | format-table -Property IdentityReference, AccessControlType, FileSystemRights, IsInherited
}