Welcome to TimeSnapper Forums Sign in | Join | Faq

Help Needed

Started by sitary at 04-30-2007 17:04. Topic has 3 replies.

Print Search
Sort Posts:    
   04-30-2007, 17:04
sitary is not online. Last active: 7/1/2008 7:09:48 AM sitary

Top 10 Posts
Joined on 09-11-2006
Posts 11
Vista - No snapshots in when UAC is turned on
Reply Quote
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
   Report 
   04-30-2007, 18:48
AtliB is not online. Last active: 6/14/2008 7:53:46 AM AtliB

Top 10 Posts
Joined on 05-30-2006
Reykjavik / Iceland
Posts 259
Re: Vista - No snapshots in when UAC is turned on
Reply Quote

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.
   Report 
   05-02-2007, 8:53
sitary is not online. Last active: 7/1/2008 7:09:48 AM sitary

Top 10 Posts
Joined on 09-11-2006
Posts 11
Re: Vista - No snapshots in when UAC is turned on
Reply Quote
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
   Report 
   02-08-2008, 15:00
AtliB is not online. Last active: 6/14/2008 7:53:46 AM AtliB

Top 10 Posts
Joined on 05-30-2006
Reykjavik / Iceland
Posts 259
Re: Vista - No snapshots in when UAC is turned on (FIXED)
Reply Quote
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.
   Report 
TimeSnapper For... » TimeSnapper » Help Needed » Vista - No snapshots in when UAC is turned on

Powered by Community Server, by Telligent Systems