mirror of
https://github.com/skoobasteeve/jamfops.git
synced 2026-03-20 05:08:55 +00:00
initial commit
This commit is contained in:
11
ext-attributes/vm-images.sh
Normal file
11
ext-attributes/vm-images.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user