| Previous | Next |
| STATUS_NETWORK_ACCESS_DENIED | STATUS_BAD_NETWORK_NAME |
STATUS_BAD_DEVICE_TYPE
The requested remote resource type does not match the actual share
A redirector operation expected one device class, such as a disk or printer, but the remote resource was published as another type. The name can resolve and authentication can succeed while the operation still fails because file, print, pipe, and communication-device semantics are not interchangeable.
Check the share type returned during connection and the local device mapping requested by the caller. Reusing a stale drive or printer mapping after the server changed the share can reproduce this error. Changing permissions will not correct a disk-versus-printer mismatch.
What to inspect
- Record the UNC path, share type, and local mapping type.
- Remove stale mappings and query the share again.
- Verify that the application opens the resource through the correct file or print API.
References
- Microsoft Open Specifications: SMB error classes and codes
- Microsoft Open Specifications: NetrWkstaTransportEnum
- Microsoft Open Specifications: NTSTATUS values
Looking for a different code? Search another status or error code.