in reply to terminal server client
The answer is find out which apis to call on http://msdn.microsoft.com/, then use Win32::API or Win32::OLE to call them.
See also Re: Setting Terminal Server User Profile Settings and what it references.