> Thanks to all who replied to my "Running Perl as a Logon Script" post
> (during the testing phase, Perl is installed on a few clients. Once I can
> prove this works, I will then get management's OK to install Perl on the
> domain controllers). Wrapping the .pl in a .bat resolved my issue.
>
> I have one other question related to this...In the logon script I am using
> %LOGONSERVER% to determine which domain controller authenticated the client,
The easiest and quickest solution (IMHO) is to find out where is Z:
connected to. :
use Win32::FileOp;
$server = Mapped 'Z:';
$server =~ s{^(\\\\[^\\]+)\\.*$}{$1};
# this will NOT work under WinNT and Win2k. They do NOT map the Z:
# during login
> and %COMPUTERNAME% to determine the name of the client.
use Win32;
$client = '\\\\' . Win32::NodeName()
Jenda
== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think? :-)
-- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin