Hi everyone, new to PowerShell and trying to accomplish something I know if possible but can’t quite get it. I need to create a script that can be run as a Scheduled Task that will look for a ZIP file in a specific folder and unzip it to a folder named exactly what the zip file is named. Using Expand-Archive, I’m able to get a zip file with a KNOWN filename unzipped and even a directory created with the same name as the zip file.
What I can’t seem to figure out is, how can I have my script find any zip file, then unzip it to a folder that it creates with the same name as the original zip? The source directory will always be the same.