Accessing and Writting files to Access Connect Volumes
I am writing a PowerShell script to modify specific files that have been written to our Windows File Servers. The file servers are running EZ-IP Version 9. I have come across many folders and files that have strange characters contained in them. For example here is a directory name that I have, ImageViewer™ You will notice the TM at the end of the folder name.
Now when I get a listing to a file from PowerShell using the Get-ChildItem cmdlet that folder actually looks like this in the file, ImageViewer? The TM now is a ?.
Now from within my PowerShell script I can list out the files under that folder, verify the files exist using the Test-Path and I can also delete the files using the Remove-Item cmdlet. But when I use the Add-Content cmdlet I get errors stating the object is not found.
How can I access this folder from PowerShell? Should I specify a different -encoding parameter on the Get-ChildItem? Can I convert just that entry when I hit the error to represent what is actually there and allow me to write the file?
Any and all help on this would be greatly appreciated.