New-PSDRIVE command

thomas esteve 0 Reputation points
2024-12-05T09:12:48.0433333+00:00

Good morning,

  • I'm trying to use New-PSDRIVE (powershell command) to create a map network drive but I have an issue.

New-PSDrive -Name "x" -PSProvider "Filesystem" -Root "\wxxx\yyy" -Confirm -Credential toto\tata -Scope global -Persist

  • I have these results :

Status Local Remote Network


OK X: \xxxx\yyy Microsoft Windows Network

The command completed successfully

Idem if I use "Command Prompt" with "Net Use" command, "X" is OK

  • When I'm going to "File explorer", I can't see my shortcut....

Do you have an idea ?

Regards,

Note : I use W11 24H2 Enterprise

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jing Zhou 7,765 Reputation points Microsoft External Staff
    2024-12-10T01:56:36.2833333+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    To further troubleshoot this issue, please kindly try below steps:

    1.Restart the file explorer service and check if issue still persists.

    2.Check disk management and see if disk X exists here.

    3.Use CMD Command to map the drive:

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

     

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

     

    Best regards,

    Jill Zhou

     


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

    0 comments No comments

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.