Hello,
I want execute this comand in my exchange 2013 server:
Search-Mailbox identity mailbox SearchQuery kind:contacts -DeleteContent -confirm:$false -force
I must execut this command by the PowerShell Exchange.
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command ". 'D:\Exchange2013\bin\RemoteExchange.ps1';
Connect-ExchangeServer -auto -ClientApplication:ManagementShell "
How is it possible to automatized this command by powershell exchange ?
For the moment i must first lunch powershell exchange and after make teh command line.
How do all in the same time ?
thx,