Posted on 05-08-2018 08:38 AM
Can anyone think of a good way to find the build of windows running in a VM? Been looking around and I'm not sure if its possible.
Posted on 05-08-2018 01:23 PM
Command+R and type winver - works for me in Fusion.
Posted on 05-08-2018 03:30 PM
Anyway to automate with Jamf? @mm2270 magic powers?
Posted on 05-10-2018 12:01 PM
we were able to ping them with a windows script.
Posted on 05-10-2018 12:44 PM
For Parallels I created a EA that reads the VM version, here is the script which might help you out:
echo "<result>"
mdfind -name .pvm > /tmp/vmlist
cat /tmp/vmlist | while read i; do
if [ -f "/$i/VmInfo.pvi" ]; then
vmosversion=$(cat "/$i/VmInfo.pvi" | grep -i realosversion | awk '{print substr($1,16,8)}') 2> /dev/null
if [ "$vmosversion" == "unknown<" ]; then
echo >/dev/null
else
echo "$vmosversion -"
fi
else
echo >/dev/null
fi
done
rm -r /tmp/vmlist
echo "</result>"
data type = string
input type = script
Posted on 05-10-2018 12:54 PM
awesome, thanks @Cornoir I'll give this a go
Posted on 05-14-2018 08:57 AM
@Cornoir So i tried that script and it seems to cut off the rest of the info. Any thoughts?
Posted on 07-13-2018 12:17 PM
In the script this line is truncating the info:
vmosversion=$(cat "/$i/VmInfo.pvi" | grep -i realosversion | awk '{print substr($1,16,8)}') 2> /dev/null
I suggest running the script from the terminal with the sh -x prefix to see what is getting cut off and then edit the following section to display what you need (and then post the fix here for all):
print substr($1,16,8)