Say I run the following:
Get-WMIObject -query "select * from win32_printer"
Now that will return a printer name of say "\\printserver1\printer1"
However if you try to run:
Get-WMIObject -query "select * from win32_printer where name = '\\printserver1\printer1'"
It can't find the device.... You have to add in additional "\" for it to work as noted above:
Get-WMIObject -query "select * from win32_printer where name = '\\\\printserver1\\printer1'"
And prints off your server just fine. I just don't understand why the name reports as \\printserver1\printer1 when in reality it can't be removed unless you use \\\\printserver1\\printer1
Hope that makes more sense.