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

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file