briannz556 has asked for the wisdom of the Perl Monks concerning the following question:

When I look at a user in AD and their Terminal Services Profile tab I see two radio buttons in the Home Folder section: local path and connect. How do I write to the connect radio button section? I've tried this code:
$user-> {TerminalServicesHomeDirectory} = "H:"; # puts this in the loc +al path $user-> {TerminalServicesHomeDrive} = "H:"; # doesn't do anything $user-> {AllowLogon} = 1; $user-> SetInfo;
I'd appreciate any reference or help please. Many Thanks

Replies are listed 'Best First'.
Re: Terminal Services W2003
by GrandFather (Saint) on Oct 07, 2008 at 00:03 UTC
      Yep, that was just what I wanted. Nice reference material. Appreciate your prompt and invaluable response. I'd tried to set just the drive letter but by itself this doen't work. Solution:
      $user-> {TerminalServicesHomeDrive} = "H:"; $user-> {TerminalServicesHomeDirectory} = "\\\\server\\something\$";
      are BOTH needed and in this order

        Google is often useful for this sort of search. Searching for TerminalServicesHomeDirectory got the given link as the second entry on the search page.

        Heh, I'd actually suggested you change the order of those two statements, then removed the comment!


        Perl reduces RSI - it saves typing