My Powershell script:
New-PSDrive -Name J -Root \\myserver\mypath -PSProvider FileSystem
"test" | Out-File J:\test.txt
Get-Content -Path J:\test.txt
notepad J:\test.txt
J drive maps ok, the file gets created, Get-Content can read it BUT notepad (or any .exe) cannot see the file.
What should I do to make the drive mapping visible to other executables run within the script?
Thanks.