Skip to content

Instantly share code, notes, and snippets.

@mgeeky
Created September 6, 2022 12:09
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgeeky/82d6abe0508ae81f107689864fb5dfc0 to your computer and use it in GitHub Desktop.
Save mgeeky/82d6abe0508ae81f107689864fb5dfc0 to your computer and use it in GitHub Desktop.
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