We might have seen when we log out, restart or shutdown Mac OS X Lion, we get a dialog window with a check box next to “Reopen windows when logging back in” that restores all of your currently open applications and windows. To disable this feature there is no visible preference/configuration item to do this. The mac os x stores all the window related information under under each users preferences directory. Upon next login it loads all the windows based on the saved data under preferences. The following section helps you in how to disable this. 1. Write a shell Script as below and and save as disable.sh : #!/bin/bash echo "#!/bin/bash" > /tmp/disableWindows.sh echo "rm/Users/*/Library/Preferences/ByHost/com.apple.loginwindow.*" >>/tmp/ disableWindows.sh mv /tmp/ disableWindows.sh /usr/bin/ disableWindows.sh chmod +x /usr/bin/ disableWindows.sh defaults write com.apple.loginwindow L...