Get-ChildItem says "does not exist"

Welcome Forums General PowerShell Q&A Get-ChildItem says "does not exist"

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 month, 3 weeks ago.

  • Author
    Posts
  • #117204

    Participant
    Points: 64
    Rank: Member

    I'm trying to get content of a folder in 172.16.100.100\JetStor\Data

    So when I enter Get-ChildItem -Path '172.16.100.100\JetStor\Data' it says it does not exist.

  • #117292

    Participant
    Points: 316
    Helping Hand
    Rank: Contributor

    Have you tried using a UNC Path:

    Get-ChildItem -Path '\\172.16.100.100\JetStor\Data'
    
  • #117334

    Participant
    Points: 64
    Rank: Member

    Oh my god, I can't believe I forgot the \\. Thank you. It's working.

You must be logged in to reply to this topic.