I tested the script Sergei shared with the hardcoded base64 image, which worked fine when run through a flow, so I'm wondering if there may be an issue with how the image is being passed into the script. Would you be able to share the inputs of the "Run Script" a...
reg query"%_CBS%\%%A" /v "CurrentState" %_Nul_2% | find /i "0x70"%_Nul_1% && ( for /f"tokens=3 delims=-~" %%B in ('echo %%A') do set "_EditionPkg=%%B") ) if /i"%_EditionPkg:~-7%"=="Edition"( set"_Edition=%_EditionPkg:~0,-7%") else ( for /f"tokens=3 del...