View Single Post
Old 07-19-2007   #2 (permalink)
Marco Shaw


 
 

Re: Cancel a print job from the shell

NormyB wrote:
> Hello all,
>
> I am stuck. I want to be able to use PS to cancel a specific printjob.
> I know the printer name and the JobID. How can I pull this off? Is
> there a powershell way to say " Cancel JobID 123 on Server1" ??
>
>
> Any suggestions would be greatly appreciated.
>
> Thanks,
>
> Norm
>


I checked WMI and also a DLL from the resource kit, and they can only
purge *all* jobs from what I can tell.

You can however use plain old 'net print' from PowerShell though:
http://www.windowsitpro.com/Articles...533/14533.html

Marco
My System SpecsSystem Spec