mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Request for Script or Function to Rollback Executed Commands #51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@narender34 commented on GitHub:
Logged Idea in discussions.