Timothy Johnson wrote:
Or for a simpler way to do the same thing, get Dave Roth's Win32::AdminMisc
from his PPM repository at http://www.roth.net/perl/packages (If you don't
have it, get it now. It can save you a lot of time.)
There is a function in there called SetEnvVar() that will do exactly
Or for a simpler way to do the same thing, get Dave Roth's Win32::AdminMisc
from his PPM repository at http://www.roth.net/perl/packages (If you don't
have it, get it now. It can save you a lot of time.)
There is a function in there called SetEnvVar() that will do exactly what
you need.
-Or
$Bill Luebkert wrote:
Voyer, Paul wrote:
Hello!
I did a Perl script to do some automated setting...
It is running on Windows 2000, a part on my script is using
Win32::TieRegistry.
I update environment variable, when I look in to the registry, the
variable is
updated correctly. Starting a new
Voyer, Paul wrote:
Hello!
I did a Perl script to do some automated setting...
It is running on Windows 2000, a part on my script is using Win32::TieRegistry.
I update environment variable, when I look in to the registry, the variable is
updated correctly. Starting a new "cmd" window, the same va
Hello!
I did a Perl script to do some automated setting...
It is running on Windows 2000, a part on my script is using Win32::TieRegistry.
I update environment variable, when I look in to the registry, the variable is
updated correctly. Starting a new "cmd" window, the same variable has the
previ
"Ailes, Kevin" <[EMAIL PROTECTED]> writes:
> It IS amazing how testy some people can be this early in the week.
I admit to being stressed this week (due to a pending office move). I
apologize for calling you a moron :-).
> 1.) The attachment was a ".pl" file which will be immediately blocked b
You should be fine using Win32::AdminMisc and/or Win32::Lanman against AD.
The only issue you will run into is creating user accounts. You won't be
able to set the OU that a user account should be created in, so they will
all default to the Users container. Outside of that everything should work
It IS amazing how testy some people can be this early in the week.
1.) The attachment was a ".pl" file which will be immediately blocked by
our exchange groupshield installation.
2.) I saw no indication that Groupshield sent it's reply to the entire
list, that was done by you Patrick.
3.) I'm
Good news! All your old NT4 perl code will (should?) work just the way it
does now. Just make sure your code is pointing to the AD domain controller
that has the PDC emulator role.
However, to take advantage of all the new wonders of AD, you will need to
learn LDAP. You can use ADSI, or you can us
"GroupShield for Exchange (UNIT800)" <[EMAIL PROTECTED]> writes:
> Action Taken:
> The attachment was quarantined from the message and replaced with a text
> file informing the recipient of the action taken.
OK, what morons have configured their MTA to a) filter text/plain
attachments; and b) inf
Denis Banovic <[EMAIL PROTECTED]> writes:
> Hi!
>
> Is it possible to get the MAC Adress of a Remote PC in LAN or in the
> Internet?
First of all, there is no such thing as "the" MAC address. Any
machine can have multiple network adapters, both physical and virtual,
and you should decide right
I've got a stable NT domain that I've been running for years. All account
admin for my domain, Exchange server, linux, etc is pretty much automated w/
cmd scripts, perl using AdminMisc (thanks Dave), & various cmd line
utilities. I'm happy & get/set any attribute I need.
However, the servers are v
Here is an example
# NetAdmin_MAC_Adresse.pl ermittelt die MAC-Adrese
use Win32::NetAdmin;
$ref = {};
$host = $ARGV[0] || Win32::NodeName();
my $trans;
my $rtn;
if (Win32::NetAdmin::GetTransports( "$host", $ref)) {
foreach $trans (keys %{$ref}) {
if( $ref->{$trans}->{'transport_na
Here follows an example script that does just this, showing lists sorted by
server type.
It looks a bit long, but this is mostly due to comments.
If you look at it more closely, it is in fact a simple piece of code
repeated for several
server types.
Could all be easily be rewritten as routine
Hi!
Is it possible to get the MAC Adress of a Remote PC in LAN or in the
Internet?
Which module should I use?
Thanks
"THINK THE WEB WAY."
---
NCM - NET COMMUNICATION MANAGEMENT GmbH
---[ Denis Banovic - CTO
mailto:denis.banovic@;n
[EMAIL PROTECTED] wrote:
Hi,
I have some subroutine that tests either one machine or a bunch of them. If
it's a single machine, the "print" statements in the subroutine should go to
stdout (no change needed for this, that's how it works now), if however I
want to test a lot of machines, I want th
LOG in not assigned...
and also, I think you can't use a variable for FILE print.
You cant use
print LOG "some output";
but not
print $print "some output";
Another way to do this is to redirect stdout/stderr in case you have lot of
machines and
use the print command.
example :
$manymachines=1;
Hi,
I have some subroutine that tests either one machine or a bunch of them. If
it's a single machine, the "print" statements in the subroutine should go to
stdout (no change needed for this, that's how it works now), if however I
want to test a lot of machines, I want the "print" statements redir
> sorry "\\c\$" ...
ah, thx ;)
Lars
___
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
sorry "\\c\$" ...
-Original Message-
From: Dutrieux Yves [mailto:YDU@;cph.be]
Sent: Tuesday, October 22, 2002 10:28 AM
To: '[EMAIL PROTECTED]'
Cc: [EMAIL PROTECTED]
Subject: RE: test file existence
You have a missed "$c\$" I think.
Yves.
-Original Message-
From: [EMAIL PROTECTE
You have a missed "$c\$" I think.
Yves.
-Original Message-
From: [EMAIL PROTECTED] [mailto:extern.Lars.Oeschey@;audi.de]
Sent: Tuesday, October 22, 2002 10:21 AM
To: [EMAIL PROTECTED]
Subject: test file existence
could this work?
if (-e ("$machine\\c$\\WINNT\\system32\\smscpl32.cpl
could this work?
if (-e ("$machine\\c$\\WINNT\\system32\\smscpl32.cpl")) {
print "smscpl32.cpl exists\n";
}
I just get a
Use of uninitialized value in concatenation (.) or string at admin.pl line
76.
Lars
___
Perl-Win32-Admin mailing list
22 matches
Mail list logo