add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
Import-Module 'C:\Program Files\Common Files\Microsoft Lync Server 2010\Modules\Lync\Lync.psd1'
Start-Transcript -Path .\abtrans.txt
Get-CASMailbox -ResultSize Unlimited | where { $_.ActiveSyncEnabled -eq 'True'} | Select SamAccountName | Export-Csv .\ablync.csv -NoTypeInformation
$b = Get-Content .\ablync.csv
Foreach ($i in $b)
{
Grant-CsClientVersionPolicy -Identity $i -PolicyName "Admin Users"
}
Stop-Transcript
No comments:
Post a Comment