Explainer
Why the WinCC OA GEDI RDP ActiveX list is not a remote desktop
Short answer
The GEDI ActiveX list is only an inventory of COM components registered on that Windows PC; a Microsoft RDP client control dropped onto a panel creates a host rectangle, not a session. A working remote desktop needs four checks in order: a plain client test from the runtime computer, matching control and host bitness, the documented properties and methods called from panel scripts, and verified keyboard focus and sizing.

On this page
- Can a WinCC OA panel show a remote Windows desktop?
- What does the GEDI ActiveX list actually contain?
- Why must the first test be the normal client on the runtime computer?
- Why does control bitness have to match the WinCC OA UI process?
- Which properties and methods does the panel have to call?
- How do you prove keyboard input reaches the remote desktop?
- What happens to the remote session when the panel closes?
- How do you split the fault when the panel shows no desktop?
- When is an embedded RDP control the right answer?
- Questions asked
Yes — a WinCC OA panel can carry a live remote Windows desktop, but the ActiveX list in GEDI, the WinCC OA graphics editor, does not deliver one by itself. That list is only an inventory of the COM components registered on the Windows PC where GEDI runs, so dropping a Microsoft RDP client control onto a panel creates a host rectangle, not a session. A working remote desktop inside the panel needs four checks in order: a plain connection test from the runtime computer, matching control and host bitness, the Microsoft-documented properties and methods called from panel scripts, and verified keyboard focus and sizing in the runtime UI. This article walks the four checks in the order you meet them and ends with the decision for each case.
Can a WinCC OA panel show a remote Windows desktop? #
Yes: by hosting Microsoft's Remote Desktop ActiveX client control, a WinCC OA panel can display and operate a remote Windows desktop, but only after four separate checks pass in order — the ActiveX list alone delivers none of them.
Remote Desktop Protocol carries a remote graphical session and the user's input over the network. ActiveX is the Windows component technology through which an application hosts an interactive control inside its own window. Treat these as two separate commissioning tasks: first prove that Windows on the runtime computer can reach and sign in to the target, then prove that the embedded control can do the same inside the runtime. Microsoft documents the programming interface you will call: IMsRdpClient exposes the methods and properties that configure and drive the client control, and it builds on the older IMsTscAx interface.
What does the GEDI ActiveX list actually contain? #
It contains an inventory of the ActiveX components registered on the Windows PC where GEDI runs, nothing more: the entries are not documentation, and their presence proves nothing about whether a component works inside the WinCC OA runtime.
WinCC OA documentation covers the ActiveX host element and how a panel embeds a control; the behavior of each individual control is documented by its maker. That division of labor is why the RDP entries come with no connection instructions of their own. Expect several Microsoft RDP Client Control entries, because Microsoft ships more than one class implementing the control — the documented list includes MsRdpClient12 and redistributable versions. Select the entry from Microsoft's class documentation for the interface you intend to program, not whichever name looks newest, and record the exact entry you chose so the same component can be confirmed on the runtime computer.
Why must the first test be the normal client on the runtime computer? #
Because an embedded control cannot repair an unreachable target, a rejected account or a blocked network path, the first check is a plain connection test with the built-in Windows Remote Desktop client, run on the computer that will execute the WinCC OA user interface.
The target's Windows edition and configuration must accept incoming Remote Desktop connections, and the account must hold remote sign-in rights. The test, in order:
- Connect to the intended target. Expected: it is reachable and presents its authentication prompt.
- Sign in with the intended account. Expected: the remote desktop opens with the site's normal security settings unchanged.
- Run the application the operator needs, then disconnect and reconnect. Expected: the work succeeds and the session recovers.
A test from an engineering workstation proves nothing about the runtime computer: it sits on a different network path, may hold different credentials and may face a different firewall rule. Fix anything that fails here before opening GEDI at all.
Why does control bitness have to match the WinCC OA UI process? #
An ActiveX control is in-process COM code, so a 64-bit host process cannot load a 32-bit control and a 32-bit process cannot load a 64-bit one; both being installed on the same computer proves nothing about the match.
Both bitnesses of the RDP client control can be registered side by side on one Windows PC, so two list entries can differ in exactly this hidden way. Establish the bitness of the process that hosts the panel at runtime in your installed release, and select the control to match. The proof is a two-stage load test: GEDI creates the embedded object on a dedicated test panel without a registration or loading error, and the same object then loads again in the intended runtime — success in the editor alone is not enough. When the object loads in the editor but fails in the runtime, compare the bitness of the two processes first.
Which properties and methods does the panel have to call? #
Exactly the members Microsoft documents for the interface you selected: the panel logic must configure and drive the control through its documented interface, and no amount of scripting substitutes for a member that does not exist.
Map the desired behavior to that interface before writing panel code. The mapping needs five elements: a destination, an authentication approach, a connection request, connection-state feedback, and a disconnection path. Take every member name from Microsoft's Remote Desktop ActiveX control reference for the exact class you selected — never adapt names from a different control, a different version or a code sample written for a web page.
Two documents govern the result and you need both: the WinCC OA documentation says how the host reads and writes ActiveX properties, calls methods and receives events, and Microsoft's reference says what those members do. Keep passwords out of panel source and diagnostic output. Make the connection an explicit operator action and capture the control's connection-state feedback, so the panel distinguishes a requested connection from an established session.
How do you prove keyboard input reaches the remote desktop? #
By clicking inside the embedded desktop and typing into a harmless application on the target, such as a text editor: keystrokes landing there — and nowhere in the local panel — is the pass, and a desktop that renders but swallows input has a focus fault.
Keyboard focus decides which object receives keystrokes, and a remote desktop can render perfectly while typing activates a local panel object instead. Move focus to a local control and back; both directions must behave predictably.
Sizing is the second half of this check, because a resized host rectangle does not prove the remote session's resolution follows it. A worked example with illustrative numbers: the panel graphics area is 1280 x 800 px, and a strip of 32 px at the bottom holds the connect and disconnect buttons. The arithmetic: 800 - 32 = 768 px of height left, so the control rectangle measures 1280 x 768 px. A remote session configured at 1280 x 768 fills that rectangle pixel for pixel with no scaling, while a 40 px strip would leave 1280 x 760 px and force bars, cropping or scaling. Decide strip height and session resolution together so the rectangle equals the session, then test the deployed panel size and any resizing the station allows.
What happens to the remote session when the panel closes? #
Closing the panel, disconnecting the client and signing out of Windows are three different actions, and the target's session policy together with the control's documented behavior decides what survives each one.
The panel object's lifetime is not the Windows session's lifetime, and a disconnect can leave the remote applications running. That makes disconnect-versus-sign-out a shift-handover decision rather than an accident: choose which action the panel's button triggers and test both on an isolated bench before deployment. Keep the whole arrangement inside the site's approved remote-access architecture — the station-role questions this raises are the ones covered in when remote desktop access to an HMI runtime is allowed. One safety line holds for every variant: an embedded remote desktop creates no security boundary, and a desktop shared onto an operator screen must never become a route around the machine's safety functions or its authentication.
How do you split the fault when the panel shows no desktop? #
Compare the embedded control against the plain-client test on the same computer: whichever fails first names the boundary — Windows and network before ActiveX, hosting before scripting, focus before sizing.
| Observed failure | Boundary it points to | Next check |
|---|---|---|
| The normal client fails too | Windows or network path | Target availability, account permission, connection diagnostics |
| The object will not load | ActiveX hosting | Registration, control bitness against the runtime process, load test in the runtime |
| The object loads but never connects | Panel scripting | Documented property values, the connect call, connection-state feedback |
| The session shows but typing lands elsewhere | Keyboard focus | The focus test in the runtime UI |
| The session connects clipped or distorted | Sizing | Session resolution against the control rectangle |
When is an embedded RDP control the right answer? #
Embed the control when the operator must work inside a remote Windows desktop without leaving the panel and the runtime computer has proven network access; for every other case a different tool is the better decision.
- The operator needs the whole remote Windows desktop in the panel and the plain-client test passes on the runtime computer: embed the control and run the four checks in order.
- The desktop is only occasionally needed, for administration: start the built-in Windows client beside the runtime instead of embedding anything, with one hosted component fewer to maintain.
- The real goal is viewing or operating another machine's HMI screens, not a Windows desktop: use a runtime client or panel mirroring — the trade-offs between the two are laid out in remote panel mirroring versus an independent WinCC runtime.
- The station is a Comfort Panel rather than a PC runtime: its built-in RDP client needs no ActiveX hosting at all, and that path is getting RDP from a Comfort Panel to a cabinet PC.
Questions asked
Can the control ask for credentials instead of storing a password in the panel?
Yes. Microsoft documents that the Remote Desktop ActiveX control can prompt the user for credentials. Using that prompt keeps passwords out of panel source and diagnostic output, and the operator signs in the same way the site already requires for the normal client.
Why does a property that worked in a test page fail inside the runtime?
Microsoft documents that some Remote Desktop ActiveX control properties are restricted to specific Internet Explorer URL security zones. A panel host is not a browser, so a property allowed in a web test page can be unavailable in the runtime; verify every property you rely on inside the actual runtime, not only in the editor.
Does disconnecting end the programs on the remote computer?
Not necessarily. A disconnect closes the display and input path but can leave the remote session and its programs running, ready for a reconnect; a sign-out ends the session and closes its programs. Decide which action the panel's button triggers and test both during commissioning.


