Sometimes a drive maps fine, but you can't write to it or delete files.
Type the following command and press Enter: net use Z: \\ServerName\FolderName /persistent:yes mapping drive windows 11