Exporter la configuration OCS des utilisateurs d’une OU.

Exportation dans un fichier de la configuration OCS de tous les utilisateurs d’une OU.

$resfile = New-Item -ItemType file -Path COR_OCS_UsersConfList.txt -Force
Add-Content -Path $resfile -Value "DisplayName,Status,Enabled,PrimaryURI,UCEnabled,RemoteCallControlTelephonyEnabled,LineServerURI,LineURI,EnabledForInternetAccess,EnabledForEnhancedPresence,AllowOrganizeMeetingWithAnonymousParticipants"
 
Get-Mailbox -ResultSize unlimited -OrganizationalUnit "domain.local/FI07_Compta/Users/Standard" | foreach {
$Alias = $_.Alias
$DisplayName = $_.Name
$Conf= get-wmiobject -class MSFT_SIPESUserSetting | Where-Object { $_.DisplayName -eq $DisplayName }
If ( $Conf -ne $null)
{
Add-Content -Path $resfile -Value "$($Conf.DisplayName),OK,$($Conf.Enabled),$($Conf.PrimaryURI),$($Conf.UCEnabled),$($Conf.RemoteCallControlTelephonyEnabled),$($Conf.LineServerURI),$($Conf.LineURI),$($Conf.EnabledForInternetAccess),$($Conf.EnabledForEnhancedPresence),$($Conf.AllowOrganizeMeetingWithAnonymousParticipants)"
}
Else
{
Add-Content -Path $resfile -Value "$($DisplayName),NOK"
}
 
}
Invoke-Item $resfile



Related posts:

  1. Import de la configuration d’utilisateurs RCC OCS.
  2. Afficher les utilisateurs MOCS.
  3. Exporter les MailContacts.
  4. Traiter aléatoirement une liste de compte.
  5. Exporter les boites avec forwards.


Flux RSS des commentaires de cet article. TrackBack URI

Leave a Reply