Vista - No snapshots in when UAC is turned on

Help Needed

Vista - No snapshots in when UAC is turned on


sitary 04-30-2007, 17:04
I've got gaps! Whenever I'm using Visual Studio or SQL Server (both of which I run as Admin in Vista), TimeSnapper does not take a snapshot.

When I turn UAC off, TimeSnapper works as usual.

Version 2.3.0.0

Re: Vista - No snapshots in when UAC is turned on


AtliB 04-30-2007, 18:48

Hi Simon.

I tested this out and you are right, it doesn't take screenshots of applications running as administrator when the UAC is turned ON.  This is to be expected with this setup.

Reason:
When TimeSnapper is about to take a snapshot, it gets some basic information about the process that is running (such as the process name and the text from the window's titlebar).  This information is later used for searching and statistical purposes (as you know).  However, the user 'sitary' doesn't have access to the process run be 'admin' (because that would be a security risk) and therefor we encounter an error which aborts the screenshot (and writes to the log).

This is what I found in the logs which should support this:
[2007-05-01 00:31:01] System.ComponentModel.Win32Exception: Access is denied
   at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
   at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean firstModuleOnly)
   at System.Diagnostics.Process.get_MainModule()


Solution:
If you want TimeSnapper to take snapshots of a program with elevated rights (admin), you need to grant TS the same rights.  I.e. run TimeSnapper as admin and you should be fine.
That however is not such an easy task in Windows Vista since they block applications at startup where administrator rights are required.

Here is a little discussion on the topic:

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=967128&SiteID=1

Basically, this seems to be the most simple solution of them all:

I removed the shortcut from the start menu "Startup" folder (although I bet it could've been in the "Run" key in the registry too) and instead I created a task using "Task Scheduler" with the "when I log-on" trigger. It works like a charm.


Hope this helps somewhat (at least until we can find a better solution)!

Best regards,
Atli

ps. we could theoratically take the snapshot but we'd have to leave out any information about the program itself.  This is however not an option when the user has some filter in place (such as: don't take snapshot of this and that program).


Check out TimeSnapper, the automatic screenshot journal at www.timesnapper.com

It runs in the background of your computer, taking screenshots of your desktop every few seconds all week long.

TimeSnapper lets you play back your week just like a movie. Use it to improve your work habits and become more productive.

Re: Vista - No snapshots in when UAC is turned on


sitary 05-02-2007, 8:53
Excellent. Thanks for the detailed analysis. Right now I'm running with UAC off so I can get some work done. ;-)

When I need to test the security settings for the app I'm working on and I turn UAC back on, I'll use the Task Scheduler to kick off TimeSnapper in Admin mode.

Simon

Re: Vista - No snapshots in when UAC is turned on (FIXED)


AtliB 02-08-2008, 15:00
Hey Simon,

the latest version (v. 2.7.0.2) should work better for this scenario!

cheers
Atli

Check out TimeSnapper, the automatic screenshot journal at www.timesnapper.com

It runs in the background of your computer, taking screenshots of your desktop every few seconds all week long.

TimeSnapper lets you play back your week just like a movie. Use it to improve your work habits and become more productive.

Powered by Community Server, by Telligent Systems