Create Custom Variable
Is it possible to create a custom variable using a system variable? I'm trying to parse out several IP addresses discovered during a network scan that I know to be Cisco phones. If I running the following PowerShell tool against them, and they return True, I know them to be phones:
invoke-webrequest http://$(Computer:Target) | select-string "SPA504G -quiet
I want to setup custom dynamic groups of targets that return true on the above command. Seems every time I try to create the variable, PDQ Inventory complains about a spcae, @ or $ being in the name. I've been following this blog post for help but I'm not getting very far.
Thanks.
Comments
If I understand correctly, I think this would work: