-
Physical Host Name of a Hyper-V virtual server
Hello everybody,
I’m trying to get some Windows 2008 Hyper-V hosted virtual servers to automatically report their host (physical) server name.
For that purpose, I made a “nombre-host.bat” script with the following commands:
C:WindowsSystem32REG.exe QUERY “HKLMSOFTWAREMicrosoftVirtual MachineGuestParameters”
And added this other command just to report something already known:
C:WindowsSystem32REG.exe QUERY “HKLMSOFTWAREMicrosoftNotepadDefaultFonts”
Then I’ve added:
module_exec cmd.exe /c “”c:1nombre-host.bat”” >> c:1output.txt
to the pandora agent configuration.The second registry query works as planned but strangely, the first one always return Null or something like that.
I’ve already tried replacing my .bat with a VBScript with similar commands, but with no luck.It’s like this specific keys were invisible for the pandora agent service. 🙁
Does anybody knows a simple and foolproof way of reporting this?
Rgds,
Andres