SetHomeDirectory method of the Win32_TerminalServiceSetting class
The SetHomeDirectory method sets the TerminalServicesHomeDirectory property for the class.
Syntax
uint32 SetHomeDirectory(
[in] string HomeDirectory
);
Parameters
-
HomeDirectory [in]
-
The new value for the TerminalServicesHomeDirectory property, which specifies the computer's root directory.
Return value
Returns Success on success; otherwise, returns a WMI error code. For a list of WMI error codes, see Remote Desktop Services WMI Provider Error Codes.
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 |
|
DLL |
|