Hello,
I need to use rundll32 printui.dll,PrintUIentry command in a powershell script.
I use TRY/CATCH with invoke-command cmdlet, but the problem is when an error occurs, it is not catched, execution do not stop, pop up appers,...
Is there a way to stop script execution and log the error in a file when use rundll32 printui.dll, printUIentry
Thanks
Vince