NEVER FAILS. If I post a message to a list, I see my error RIGHT AWAY after I've
bugged 5000 people world-wide about it... 8-)
Should be "GetLastError()" for one. Now I am getting an error 1317, so my question
still stands somewhat on the cross domain thing (whilst I look into what an error 1317
is....)
Chris
-----
Chris Olive
[EMAIL PROTECTED]
---------- Original Message ----------------------------------
From: "Chris Olive" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Mon, 13 May 2002 17:24:32 -0400
>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
>
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs