Check disk space and power source

Captainamerica
Contributor

I looking for a scripts that check if power is connected and if disk space is X amount left

I have been looking arround for scripts, but some seems outdated and not working. So users are informed with jamf helper etc, that no power or enough diskspace is available

Power is typical when mac´s are enrolled I want that to be required, while diskspace in general for policies that require more disk space

Any one has some exampes

1 REPLY 1

Chris
Valued Contributor

This has logic for both built in that you could adapt