it's doable but probably not the best way to go about it via PVE snippets.
if you have qemu guest agent installed then you could execute shell commands through that [0] with qm guest exec <VMID> -- <yourcommand>
you could call that with a snippet.
but there are many other ways of doing this using windows-specific methods. you can have a powershell script like this:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.