how to connect on share with specific user in windows

I am mainly working on Mac. If you want to connect to some share and want to log in as specific user (i.e. to see not only shared folders for guest, but also shared folder for logged in users) you can click on button Connect As in Finder and you are done.
How to do this in windows ?

net use z: \\ /user:username password

if you don’t write password command window pops up and you can eneter it there.

You can delete the drive mapping letter (“z:”) and everything is working also.