Trying to script WTS setups from an "app server." The following code does NOT work on
a valid WTS account that exists:
perl -e 'use Win32::Lanman; $h = { workingdirectory => "c:\\working\\directory",
terminalserverprofilepath => "\\\\server\\profiles\\path" }; $rv =
Win32::Lanman::WTSSetUserConfig( "\\\\LABBOX", "testdude", $h ); unless ($rv) { print
"Dude, somethings wrong: " . Win32::Lanman::GetError() . "\n" } else { print "RV:
$rv\n" };'
Nothing prints, and I see no changes in the Terminal Server Profile for the user in
question. Now, I'm wondering... The documentation says "'server' should be your
PDC." LABBOX is not my PDC, but is the PDC for another domain. I am in domain A on
box MYBOX trying to set the TS profile in domain B on box LABBOX. Is this possible?
***Really** would appreciate anything anyone has to offer on the WTS calls in
Win32::Lanman. I can't seem to get them to work, but maybe this cross domain scenario
doesn't work... 8-(
Chris
-----
Chris Olive
[EMAIL PROTECTED]
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs