Situatie
Se doreste verificarea echipamentelor care sunt sincronizate cu un mailbox.
Dupa ce se deschide powershell ca administrator se da comanda Get-ActiveSyncDeviceStatistics -Mailbox User1 si se primeste eroarea:
The term ‘Get-ActiveSyncDeviceStatistics’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:31 + Get-ActiveSyncDeviceStatistics <<<< -Mailbox User1 + CategoryInfo: ObjectNotFound: (Get-ActiveSyncDeviceStatistics:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException.
Solutie
Se datoreaza faptului ca nu stie de comanda aceasta, asa ca trebuie sa folosim initial comanda:
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
Apoi, putem reveni cu comanda initiala Get-ActiveSyncDeviceStatistics –Mailbox User1 si o sa primim raspunsul dorit.
Leave A Comment?