17.05.2018 - To view the content of a directory on a Windows file server, use the FullName | Out-File C:\log\deletedbackups.txt -Append } #delete empty .