Skip to content

Instantly share code, notes, and snippets.

@josheinstein
Created May 3, 2012 15:09
Show Gist options
  • Save josheinstein/2586345 to your computer and use it in GitHub Desktop.
Save josheinstein/2586345 to your computer and use it in GitHub Desktop.
Enable "Appear Offline" in Microsoft Lync
$ErrorActionPreference = 'Stop'
try {
$LyncPolicyKey = 'HKLM:\Software\Policies\Microsoft\Communicator'
if (!(Test-Path $LyncPolicyKey)) {
New-Item $LyncPolicyKey
}
Set-ItemProperty $LyncPolicyKey EnableAppearOffline -Value 1
}
catch {
Write-Warning "Could not set the appropriate registry keys. Be sure PowerShell is running as an administrator."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment