Skip to content

Latest commit

 

History

History
100 lines (63 loc) · 2.61 KB

win32-tslogonsetting-setpromptforpassword.md

File metadata and controls

100 lines (63 loc) · 2.61 KB
title description ms.assetid ms.tgt_platform keywords topic_type api_name api_location api_type ms.topic ms.date
SetPromptForPassword method of the Win32_TSLogonSetting class
The SetPromptForPassword method sets the PromptForPassword property.
eeeed374-4a8a-4014-833c-d931be3ef455
multiple
SetPromptForPassword method Remote Desktop Services
SetPromptForPassword method Remote Desktop Services , Win32_TSLogonSetting class
Win32_TSLogonSetting class Remote Desktop Services , SetPromptForPassword method
apiref
Win32_TSLogonSetting.SetPromptForPassword
TSCfgWmi.dll
COM
reference
05/31/2018

SetPromptForPassword method of the Win32_TSLogonSetting class

The SetPromptForPassword method sets the PromptForPassword property.

Syntax

uint32 SetPromptForPassword(
  [in] uint32 PromptForPassword
);

Parameters

PromptForPassword [in]

Flag disabling or enabling the PromptForPassword property.

0

Disables password-prompting.

1

Enables password-prompting.

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.

FALSE (0)

TRUE (1)

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_TSLogonSetting