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
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,651 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,371 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,706 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jing Zhou 7,675 Reputation points Microsoft Vendor
    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.