$cred = Get-Credential New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\192.168.1.100\documents" -Credential $cred -Persist -Persist makes the drive visible in File Explorer. Without it, the drive exists only in the current PowerShell session. 6. Common Windows 11 SMB Issues and Fixes 6.1. “Windows cannot access \server\share” Cause: SMB guest access disabled by default in Windows 11.

net use Z: \\192.168.1.100\documents /persistent:yes

net use Z: \\192.168.1.100\documents /user:DOMAIN\username password