How to print a test page and capture the return value for a non default printer on a remote server using WMI's PrintTestPage method?
问题 I'm using the System.Management namespace along with WMI to install printers/ports on a remote server. Once the printer/port is installed, I'd like to print a test page, capture whether or not printing the test page was (theoretically) successful, and display the result to the user. I've got everything working up until the point of printing the test page. I've seen this article, as well as this article, on the subject, but neither one quite seems to be doing the trick because I'm not seeing