Request for Script or Function to Rollback Executed Commands #51

Closed
opened 2026-01-19 18:29:03 +00:00 by michael · 1 comment
Owner

Originally created by @narender34 on GitHub.

Problem to solve

By implementing a rollback or reverse script, all changes applied by the --fix flag can be reset to the default settings provided by a clean installation of macOS.

Intended users

This functionality can be utilized by all Mac administrators to test and revert specific settings to their default values during troubleshooting, or in cases where certain controls adversely affect system settings or the user experience.

Further details

The compliance script executed with the --fix flag applies various commands that modify permissions, settings, and other configurations on managed Mac devices. To revert these changes and restore the device to its original state, a dedicated script may be required.

Proposal

Consider incorporating an additional script or a built-in function to enable rollback of changes. For example, implementing a flag such as --rollback could facilitate reverting modifications made by --fix parameter.

Originally created by @narender34 on GitHub. ### Problem to solve By implementing a rollback or reverse script, all changes applied by the --fix flag can be reset to the default settings provided by a clean installation of macOS. ### Intended users This functionality can be utilized by all Mac administrators to test and revert specific settings to their default values during troubleshooting, or in cases where certain controls adversely affect system settings or the user experience. ### Further details The compliance script executed with the --fix flag applies various commands that modify permissions, settings, and other configurations on managed Mac devices. To revert these changes and restore the device to its original state, a dedicated script may be required. ### Proposal Consider incorporating an additional script or a built-in function to enable rollback of changes. For example, implementing a flag such as --rollback could facilitate reverting modifications made by --fix parameter.
Author
Owner

@narender34 commented on GitHub:

Logged Idea in discussions.

@narender34 commented on GitHub: Logged Idea in discussions.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#51