SetFallbackPrintDriverType method of the Win32_TerminalServiceSetting class

The SetFallbackPrintDriverType method sets the FallbackPrintDriverType property for the class.

Syntax

uint32 SetFallbackPrintDriverType(
  [in] uint32 FallbackPrintDriverType
);

Parameters

FallbackPrintDriverType [in]

Sets the FallbackPrintDriverType property which allows or denies new Remote Desktop Services connections.

0

No fallback drivers.

1

Best guess.

2

Best guess. If no match is found, fallback to Hewlett-Packard Printer Control Language (PCL).

3

Best guess. If no match is found, fallback to Postscript (PS).

4

Best guess. If no match is found, show both PS and PCL drivers.

Return value

Returns Success on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values. The method returns an error if the setting is under group policy control.

Remarks

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

See also

Win32_TerminalServiceSetting