Quantcast
Viewing all articles
Browse latest Browse all 19214

Unable to run some remote powershell command with parameter option

Hi 

I am not able to run some parameter option in remote powershell with exchange 2010.

My exchange server is in root domain (gcn.local)

I am running this command from a remote child domain PC with child domain user account logged in (latam.americas.gcn.local)

Between this two domain we have shortcut trust created.

When I am running this command I am getting the error described below.

"PositionalParameterNotFound"

PS C:\Users\mchowdch> Get-ActiveSyncDeviceStatistics -Mailbox aracela01hnsp -domaincontroller usmis002 |ft deviceid,*fir
stsync*,*state,deviceos
A positional parameter cannot be found that accepts argument '-domaincontroller'.
    + CategoryInfo          : InvalidArgument: (:) [Get-ActiveSyncDeviceStatistics], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-ActiveSyncDeviceStatistics

However the same command I can run from exchange server directly. Any suggestion would be appriciated


Viewing all articles
Browse latest Browse all 19214

Trending Articles