ToolHack has asked for the wisdom of the Perl Monks concerning the following question:
I need help setting some Terminal Server user profile settings on a 2008 Server machine. In particular, I want to uncheck the "Connect client drives at logon" checkbox. If I were a Windows hacker (which I admit, I'm not), I would apparently have to use the IADsTSUserEx interface described here http://msdn.microsoft.com/en-us/library/aa380823(VS.85).aspx
I don't understand how to do that with Perl.
What I was trying and failing with was:
$user->SetProperty('msTSConnectClientDrives', 0); $user->SetInfo();
where $user is a Win32::OLE object I created in Active Directory through LDAP.
I get the error:
Win32::OLE(0.1709) error 0x8007200b: "The attribute syntax specified to the directory service is invalid"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Setting Terminal Server User Profile Settings
by Anonymous Monk on May 13, 2011 at 17:41 UTC | |
by ToolHack (Novice) on May 13, 2011 at 21:04 UTC | |
by Anonymous Monk on May 13, 2013 at 08:08 UTC | |
by Anonymous Monk on Oct 31, 2012 at 10:00 UTC | |
Re: Setting Terminal Server User Profile Settings
by natxo (Scribe) on May 15, 2011 at 20:07 UTC | |
by ToolHack (Novice) on May 18, 2011 at 14:44 UTC | |
by ToolHack (Novice) on May 18, 2011 at 20:19 UTC | |
by natxo (Scribe) on Jun 02, 2011 at 19:32 UTC |
Back to
Seekers of Perl Wisdom