This may be more of a programming question, however, it also involves configuration, is there a way to easily, from within a script, or program determine if the current user's profile is roaming or mandatory?
More specifically is there a way to make a best programmatic guess as to weather %APPDATA% will be deleted when the user logs off?