How Do You Troubleshoot This PowerShell Error “Unable to initialize device PRN.”?

Problem scenario
When running a PowerShell script, you receive the error "Unable to initialize device PRN."  

Solution
Use the "echo" reserved word instead of "print".

PRN is what the Windows system name for printer (according to this external posting).

Optional:  If you want to buy a book on PowerShell, click here; you may also want to click here and search for "PowerShell".

Join the Conversation

4 Comments

  1. if you use “if” in powershell, don’t write -match in if, write “-imatch”

Leave a comment

Your email address will not be published. Required fields are marked *