Skip to content

Instantly share code, notes, and snippets.

@wogho
Created May 2, 2022 09:48
Show Gist options
  • Save wogho/9632264ee43aaf631d1124efcc323260 to your computer and use it in GitHub Desktop.
Save wogho/9632264ee43aaf631d1124efcc323260 to your computer and use it in GitHub Desktop.
Macro Start from Azure VM
$filenames = @(
'macro.pmc'
)
$idx = Get-Random -Minimum 0 -Maximum $filenames.count
$filename=$filenames[$idx]
Start-Process -FilePath "C:\Program Files\MacroCreator\MacroCreator.exe" -ArgumentList "$filename -s1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment