Skip to main content
Question

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

  • December 10, 2011
  • 4 replies
  • 11 views

Forum|alt.badge.img+19

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

Forum|alt.badge.img+18
  • Honored Contributor
  • July 31, 2012

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.


Forum|alt.badge.img+20
  • Valued Contributor
  • July 31, 2012

You could just create it manually with the above keys.


Forum|alt.badge.img+24
  • Valued Contributor
  • July 31, 2012

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.


Forum|alt.badge.img+18
  • Honored Contributor
  • July 31, 2012

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.