MCX to disable Lion resume “Restore windows when quitting and re-opening apps”

lisacherie
Contributor II

To disable the following checkbox via MCX:

System Preferences -> General -> Restore windows when quitting and re-opening apps

.GlobalPreferences

Create a key for NSQuitAlwaysKeepsWindows of type boolean and value false

http://lisacherie.com/?p=62

4 REPLIES 4

dgreening
Valued Contributor II

Has anyone made a manifest for this so it can be set via MCX in Casper? JAMF still does not offer this as a template.

Matt
Valued Contributor

You could just create it manually with the above keys.

jarednichols
Honored Contributor

Domain: com.apple.loginwindow
Key name: TALLogoutSavesState
Key type: boolean

Set to false.
I have it set to "user level at next login only" so it only initially sets it off since 10.7.4 introduced the "set it and forget it"-ness of this setting.

dgreening
Valued Contributor II

I set up a new Managed Preference with the domain/key in the first post, and i'll report back as to how it works.

The reason I need to apply this setting is that our custom Registration Application reboots the machine upon completion, and re-launches itself when this setting is enabled, even though the plist it leaves behind tells it not to launch.