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

Popular posts from this blog

Round Robin is killing performance on our network

WMI Repository 4GB limit - Win 2003 Ent Question

Change home folder default permission?