This one was little bit tricky. If you want to pack files on your IIS webserver follow my guide. Continue reading How to pack directory using 7-zip in PHP on Windows?
In case you ever wondered why your task returns 0x1 in Last Run Result instead of 0x0. Check if your task is trying to create any files, if it does, you must tick “Run with highest privileges” in General tab of your task properties. I’ve spent some precious time to uncover that because I’m not a native Winblows administrator 🙂