I am struggling to write powershell scripts to copy files/ directories from my network drive to another share. During the investigations, I found that the powershell is unable to recognize UNC path in my environment.
For example, I can access \tfsbuildServer02\drop path from the explorer. but while trying to test this path in Powershell script, it returns False
Test-Path -Path "\\tfsbuildServer02\drop"
As a result, the Copy-Item commands are also not working.
Can anyone please suggest what could be the issue?
I am running Powershell ISE in Administrator mode only.