Powershell can't see all files in a directory
Im at a loss with this one. I have a script in the Powershell Directory that I cannot see with Powershell. I've navigated to the directory and ran Dir -Force which should show me all files in the directory even if they are hidden.
To ensure that there wasn't something corrupt with the file I have recreated it in ISE and saved a new version of it in the location. When navigating to the directory I can see neither now.
Spoke with the other engineers that we have here and they haven't seen anything like this either. This works on their machines along with our tools server so it appears to be unique to my environment. Any ideas?
Powershell Version
Major Minor Build Revision
----- ----- ----- --------
5 1 14393 1770 Windows version 1607 (OS Build 1493.1770)
21 Answer
Pimp Juice IT had it right. By saving the file to the desktop and copying it to the directory with Powershell the app can now see it. Everything is running as expected now.