New-Psdrive does not map a network drive

Welcome Forums General PowerShell Q&A New-Psdrive does not map a network drive

Viewing 2 reply threads
  • Author
    Posts
    • #185360
      Participant
      Topics: 4
      Replies: 6
      Points: 27
      Rank: Member

      I am using below to commands to map a network drive, they get created in powershell session but they are not found in file explorer. I have gone through the documentation of new-psdrive so many times, not sure what I am doing wrong.

       

      New-PSDrive -Name V -PSProvider FileSystem -Root '\\XXX.Domain.com\US' -Persist -Scope 'global'

       

      New-PSDrive -Name W -PSProvider FileSystem -Root '\\XXX.Domain.com\US'  -Persist

    • #185639
      Participant
      Topics: 3
      Replies: 136
      Points: 719
      Helping Hand
      Rank: Major Contributor

      Hi Mallik,

      I don't see any issues with this command, I believe your company group policies are enforcing.

      Thank you.

    • #185654
      Participant
      Topics: 10
      Replies: 117
      Points: 456
      Helping Hand
      Rank: Contributor

      This can happen if you're running the commands in PowerShell under a different user context than what is being used to open File Explorer.

      Is the same user account being used for the entire process? Are you running this locally or in a remote session?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.