http://www.perlmonks.org?node_id=904988


in reply to Setting Terminal Server User Profile Settings

I think you could use Win32::Lanman for that (http://www.cpan.org/authors/id/J/JH/JHELBERG/ ) provided you can still install it in a modern Perl installation.

Otherwise, use the terminal server command (tscmd) from systemtools.com (http://www.systemtools.com/cgi-bin/download.pl?tscmd) in your script.