Current Setup
Many Hyper-V hosts filled with Windows VM's running 2008 R2 or 2012 R2 all in a Workgroup, credentials for each server are different, Hyper-V hosts are in a domain.
I need to run a script (PowerShell) on each VM, I'm in no rush for the script to execute, so I was thinking is there somewhere I can place the script on each VM that it will simply execute, purely by the file being in that location. The scripts needs to be executed in elevated privileges.
To get the script on each VM, I'm thinking of creating a script that enables Hyper-V guest services on every VM and then use Copy-VMFile to copy said script to each VM.