Show me as Inactive when my computer has been idle for this many minutes


 

 

Registry locations

HKCU\Software\Microsoft\Communicator\IdleThreshold

Allowed registry values

Any integer value between 5 and 360, inclusive (represents time, in minutes)

Registry value type

REG_DWORD

Default setting

5 minutes

 

Broadcasting presence information to people is of little use if that information isn’t up-to-date; after all, what’s the point of announcing to people that you’re available when it turns out that you really aren’t available? One way Microsoft Lync tries to help you keep your presence information up-to-date is by monitoring idle time on your computer: by default, if your computer has sat idle for 5 minutes (that is, if no one has typed anything on the keyboard or used the mouse in the past 5 minutes) then Lync automatically sets your current status to Inactive.

 

Note. Yes, for some of us Inactive probably is our permanent status. But that’s a different story.

 

If you don’t like the default period of 5 minutes of inactivity, well, that’s easy enough to change; in fact, that can either be done by using the Lync user interface or by writing a script. If you want to change this value using Lync, just open Status option of the Options dialog box and change the value of the Show me as Inactive when my computer has been idle for this many minutes box:

 

 

As for writing a script, that’s just as easy: all you have to do is modify the HKCU\SOFTWARE\Microsoft\Communicator\IdleThreshold registry value. Set IdleThreshold to any value between 5 and 360 and, in return, Lync will wait that number of minutes before marking you as Inactive.

 

We told you it was easy.

 

 

 

Before we show you how to change the idle timeout let’s show you how to retrieve the current value of IdleThreshold from the local computer. If you’d prefer to retrieve this value from a remote computer, just set the value of the variable $computer to the name of that remote computer. For example:

 

$computer = “atl-ws-001.litwareinc.com”

 

Here’s how you get the IdleThreshold value:

 

$computer = “.”

 

$registry = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(“CurrentUser”, $computer)

$key = $registry.OpenSubKey(“SOFTWARE\Microsoft\Communicator”, $True)

 

Write-Host “Show me as Inactive when my computer has been idle for this” `

    ” many minutes:”,($key.GetValue(“IdleThreshold”,$null))

 

And here’s how you change that value. In this case, the script sets the idle timeout period to 10 minutes; that’s done by setting IdleThreshold to 10. What if you want to set the timeout period to 30 minutes? That’s fine; just set IdleThreshold to 30:

 

$key.SetValue(“IdleThreshold”,30,”DWORD”)

 

Here’s the script:

 

$computer = “.”

 

$registry = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(“CurrentUser”, $computer)

$key = $registry.OpenSubKey(“SOFTWARE\Microsoft\Communicator”, $True)

 

$key.SetValue(“IdleThreshold”,10,”DWORD”)

 

 

 

Comments (5)
  1. Ghlee says:

    Hi,

    I would like to know how to prevent user from temper with the idle threshold to lock it down. I tried the options in ADM template but it did not work.

    Thanks.

  2. Jebage says:

    Hi,

    Lync also shows the amount of minutes that the user has been away.

    If there a way to prevent that in such a way that the presence status will show just as "away" (whitout the amount of munutes)?

  3. saul says:

    Hi Ghlee, I have the same question, have you found a solution?

  4. SJ says:

    I've tried changing the default value to anything other than 5 and it doesn't seem to work.  For example, I wanted 30 mins for Inactive but I am pretty sure the status changes to Inactive in less than 30 mins – I've timed it, it is more like 15 mins.  How come?

  5. Chad says:

    Doesn’t work because microsoft built it

Comments are closed.

Skip to main content