Get-ActiveSyncDevice -Filter
hi
im trying users of list of activesync device id's. stored in variable named $list. if try this, no result:
½
foreach ($d in $list) { get-activesyncdevice -filter {deviceid -eq $d} }
if exspected results:
foreach ($d in $list) {get-activesyncdevice | ? {$_.deviceid -eq $d} }
any ideas?
try...
get-activesyncdevice -filter "deviceid -eq '$d'"
that's single quotes around $d, , double quotes around whole filter.
Windows Server > Windows PowerShell
Comments
Post a Comment