Any ideas on how to get around this? I have played around with the backtick, double quotes, single quotes, and cannot seem to find a working syntax. It is failing on the WMI filter.
powershell.exe -executionpolicy bypass -command "& {Get-WmiObject win32_printer -Filter "PortName LIKE '%.%.%.%'" | select Name, PortName | ConvertTo-Csv -NoTypeInformation | out-file c:\temp\%Hostname%_printers.csv}" [cid:image001.png@01D2DEB4.E2C0A040] Daniel Ratliff The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.