Deep Freeze Tasks : Sample Command Line Scripts

Sample Command Line Scripts
The Deep Freeze Mac tasks give network administrators increased flexibility when managing Deep Freeze Mac computers. These tasks can be run with several different third-party enterprise management tools and/or central management solutions; this includes executing commands in Terminal while connected to a remote computer via SSH.
A sample script using the boot Frozen command is shown below:
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p bootFrozen
In this example, admin is the name of a valid Deep Freeze Mac user and password is that user’s password. The sample script can be modified to run any task listed in the Task table.
Here are additional examples to run the Deep Freeze Command Line:
Using the Deep Freeze user "admin" and the password "password", activates the "Schedule 1" maintenance schedule.
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p activateSchedule "Schedule 1"
Add a new user "mjones" with the password "xz18PfB".
DFXPSWD=”password” DFXNEWPSWD="xz18PfB" /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p addUser mjones
Change an existing user "mjones" to "jsmith" with the password "xz18PfB".
DFXPSWD=”password” DFXNEWPSWD="xz18PfB" /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p editUser mjones jsmith
 
Add a schedule with the name "Software Update" that will perform software update every Wednesday and Saturday from 6:00 PM to 10:00 PM, warn the users at 5:50 PM with a message, lock out the users, do not shut down after maintenance ends, and execute the script "myscript.sh".
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p addSchedule "Software Update" -a on -d wednesday,saturday -b 18:00 -e 22:00 -o off -i on -l on -w 10 -m “Maintenance will begin in %d minutes.” -s off -r myscript.sh
Add a schedule with the name "Software Update" that will perform software update once only on the coming Saturday from 6:00 PM to 10:00 PM, warn the users at 5:50 PM with a message, lock out the users, do not shut down after maintenance ends, and execute the script "myscript.sh".
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p addSchedule "Software Update" -a on -d saturday -b 18:00 -e 22:00 -o on -i on -l on -w 10 -m “Maintenance will begin in %d minutes.” -s off -r myscript.sh
To map all standard users to users ThawSpace.
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p mapAllUsers standard userthawspace
To map all administrator users to a partition called "Second Drive".
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p mapAllUsers admin "Second Drive"
To remove global ThawSpace.
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p removeThawSpace global
To resize user ThawSpace for the user jsmith to 750 MB.
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p resizeThawSpace jsmith 750
Set the partition "Third Drive" to a Thawed state.
DFXPSWD=”password” /Library/Application\ Support/Faronics/Deep\ Freeze/deepfreeze -u “admin” -p thawPartition "Third Drive"