.. / net-use
Star

The net use command in Windows is used to connect to shared resources, such as shared folders or printers. It can also be used to map a network drive to a specific drive letter and authenticate with supplied credentials (or with current shell context when not providing creds).

Command Reference:

Remote share: \\fs01.hacker.com\home$\mmaas

Username: mmaas

Drive Letter: H: (to which you mount)
Command: Copy Extra code: Copy References:

https://book.hacktricks.wiki/en/windows-hardening/basic-cmd-for-pentesters.html#shares

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/gg651155(v=ws.11)