How to add a network location in Windows by CMD command (not mapping a network drive)

kun.zhang 20 Reputation points
2024-01-04T05:32:52.18+00:00

How to add a network location in Windows by CMD command (not mapping a network drive)

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2024-01-04T06:19:16.09+00:00

    not mapping a network drive

    Then I wonder what you want to add to where; if not as mapped drive? May can you explain it more detailed, please?

    0 comments No comments

  2. Anonymous
    2024-01-05T06:13:47.99+00:00

    Hello,

    You may create a shortcut manually using the mklink command or by using a script. Here is an example using mklink:

    mklink /d "C:\Path\To\Your\Shortcut" "\\ServerName\ShareName"
    

    Replace "C:\Path\To\Your\Shortcut" with the desired path for your shortcut, and "\ServerName\ShareName" with the actual UNC path of your network share.

    This command creates a symbolic link to the network share without assigning a drive letter. However, this approach requires administrative privileges.

    If creating a symbolic link isn't suitable for your needs, and you simply want to access the network share without a mapped drive letter, you may need to use File Explorer to navigate directly to the UNC path of the network share.

    I hope this helps! Please let me know if you need any further assistance.

    Kind Regards,
    Karlie Weng


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.