PowerShell Test-Path returns False when testing a network share

前端 未结 6 1458
余生分开走
余生分开走 2021-01-05 03:00

The user has appropriate permissions to read the share, and the share maps properly. This issue seems to happen only in PowerShell v2.0.

If I remove all mapped drive

6条回答
  •  暖寄归人
    2021-01-05 03:23

    I do think I found the answer with this:

    Test-Path $('filesystem::\\Server\share$\install.wim')
    

提交回复
热议问题