Created
May 3, 2012 15:09
-
-
Save josheinstein/2586345 to your computer and use it in GitHub Desktop.
Enable "Appear Offline" in Microsoft Lync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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