SME is a great tool, but it has an undocumented feature, where it doesn’t flush it’s report files. Now these files get big and I wanted a way to zip or delete the files.
The issue is that the folder name has brackets in it [servername] and powershell treats brackets as “special”.
Try it! Open powershell, create a folder and put a file in the folder
now dir it:
Nothing right, but it works with the command prompt. It took figging ages and a fair amount of Bing time to work a way around it, it’s dead simple:
dir -LiteralPath C:\ps\[test]
Yeah baby! using -LiteralPath does the trick