Networking – Getting Access is denied while using NET view command

network-drivenetworking

I'm trying to map a network drive to my machine and I'm using net view \computename but I'm getting the "Access is denied" message.

How do I provide the username and password to the net view command without using domain
and this username? Should I use my computername's username and password or my machine username and password?

Best Answer

This worked for me:

net use \\server\IPC$

net view \\server

Once you connect to IPC$ (or any share, in fact), Windows will reuse the same credentials (or even the same TCP connection) for all other operations.

(IPC$ is a system share that exists on all CIFS/SMB servers, therefore it's guaranteed to work.)