I don’t think there’s anything like that. When I had to do something like that, I used SSH to run commands remotely. It becomes a little trickier if it’s a Windows machine though. You might have to install cygwin to be able to run an SSH server.
From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Amit Shah
Sent: Friday, July 22, 2011 4:29 PM
To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Run a powershell command on VM from xenserver
Hi All,
Is there any xe command or API to run a powershell command/script on a VM from xenserver without actually connecting to the VM via RDP or console.
eg: If i want to say create a directory on a VM or change some registry setting. So is there an xe command like
xe vm-run-command vm-name=test command="mkdir c:\test"
I would appreciate any ideas to accomplish this.
Thanks
Amit