Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Resume method
Collapse the table of content
Expand the table of content

Resume method of the Win32_PrintJob class

The Resume WMI class method continues a paused print job.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax


uint32 Resume();

Parameters

This method has no parameters.

Return value

Return codeDescription
0

Success

5

Access Denied

 

Examples

The following VBScript code sample resumes all the print jobs on a computer.


strComputer = "." 
Set objWMIService = GetObject("winmgmts:" _ 
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 
 
Set colPrintJobs =  objWMIService.ExecQuery _ 
    ("Select * from Win32_PrintJob") 
 
For Each objPrintJob in colPrintJobs  
    objPrintJob.Resume 
Next 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

Root\CIMV2

MOF

Win32_Printer.mof

DLL

CIMWin32.dll

See also

Computer System Hardware Classes
Win32_PrintJob

 

 

Show:
© 2015 Microsoft