RdvSetupVMPermissions method of the Win32_RdvhManagement class

Sets the permissions on a virtual machine for the current user.

Syntax

uint32 RdvSetupVMPermissions(
  [in] string VmName
);

Parameters

VmName [in]

The name of the virtual machine to set permissions on.

Return value

Returns 0 on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\CIMv2\TerminalServices
MOF
TSVmHost.mof
DLL
TSVmHostWmi.dll

See also

Win32_RdvhManagement