mirror of
https://github.com/skoobasteeve/jamfops.git
synced 2026-03-20 13:08:56 +00:00
11 lines
302 B
Bash
11 lines
302 B
Bash
#!/bin/sh
|
|
|
|
# Locates VM images on a users machine with the below file extensions and lists them out with thier size.
|
|
|
|
find /Users/ -type f \( -name "*.hds" -o -name "*.vmdk" -o -name "*.vdi" -o -name "*.vhd" \) -exec du -sh {} \; > /tmp/vminfo
|
|
|
|
echo "<result>"
|
|
cat /tmp/vminfo
|
|
echo "</result>"
|
|
|
|
exit 0 |