Unzipping Issue - Action Script

Hello I an running into an issue where the unzipping command is the action script is not working…it seemed to work in the past:

Copy zip onto box (this command works fine):
copy “\x\x\x\x\file.zip” “C:\test\file.zip”

unzip file:
wait Powershell Expand-Archive -Path “C:\test\file.zip” -DestinationPath “C:\test”

The fixlet completes, but the file is not unzipped. I know there is an issue with zips over 2gbs but this is little over a gig, so shouldn’t be an issue.

Is there an alternative way to unzip this?

Probably 32-bit redirection

https://developer.bigfix.com/action-script/reference/execution/action-uses-wow64-redirection.html

I concocted this a while back.

// vvv PASTE INTO OTHER ACTIONS vvv

// << UNZIP USING POWERSHELL
// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}
//
parameter "theArchive" = "REPLACE"
parameter "theDest" = "REPLACE"  // FOLDER NAME OF EXPANDED ARCHIVE
parameter "theTemp" = "{value of variable "TEMP" of environment}"
//
move __Download\{parameter "theArchive"} "{parameter "theTemp"}\{parameter "theArchive"}"
//
//    CREATEFILE
delete __createfile
createfile until END_OF_FILE
Expand-Archive -Path "{parameter "theTemp"}\{parameter "theArchive"}" -DestinationPath "{parameter "theTemp"}"
END_OF_FILE
//
delete unzip.ps1
move __createfile unzip.ps1
//
waithidden { pathname of file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of native registry) } -ExecutionPolicy Bypass -File unzip.ps1
//
// REENABLE WOW64 REDIRECTION
action uses wow64 redirection {x64 of operating system}
// >> UNZIP USING POWERSHELL


// << CLEANUP
wait cmd /c del /q /s /f "{parameter "theTemp"}\{parameter "theArchive"}"
wait cmd /c rmdir /s /q "{parameter "theTemp"}\{parameter "theDest"}"
// >> CLEANUP


// ^^^ PASTE INTO OTHER ACTIONS ^^^