Re: Changing Environment variable

2002-10-22 Thread $Bill Luebkert
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

RE: Changing Environment variable

2002-10-22 Thread Timothy Johnson
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

Re: Changing Environment variable

2002-10-22 Thread $Bill Luebkert
$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

Re: Changing Environment variable

2002-10-22 Thread $Bill Luebkert
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

Changing Environment variable

2002-10-22 Thread Voyer, Paul
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

Re: ALERT - GroupShield ticket number OA304_1035300252_UNIT800_3 was generated

2002-10-22 Thread Patrick J. LoPresti
"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

RE: to ADSI or not to ADSI, advice please

2002-10-22 Thread Spitzer, Robert \(T05\)
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

RE: ALERT - GroupShield ticket number OA304_1035300252_UNIT800_3 was generated

2002-10-22 Thread Ailes, Kevin
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

RE: to ADSI or not to ADSI, advice please

2002-10-22 Thread Ken Cornetet
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

Re: ALERT - GroupShield ticket number OA304_1035300252_UNIT800_3 was generated

2002-10-22 Thread Patrick J. LoPresti
"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

Re: Find out the MAC Address of a Remote Computer

2002-10-22 Thread Patrick J. LoPresti
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

to ADSI or not to ADSI, advice please

2002-10-22 Thread drenning, bruce
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

AW: Find out the MAC Address of a Remote Computer

2002-10-22 Thread Manfred Maier
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

RE: Discovering Servers on the Network

2002-10-22 Thread Bellenger, Bruno \(Paris\)
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

Find out the MAC Address of a Remote Computer

2002-10-22 Thread Denis Banovic
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

Re: writing to either STDOUT or Logfile

2002-10-22 Thread $Bill Luebkert
[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

RE: writing to either STDOUT or Logfile

2002-10-22 Thread Dutrieux Yves
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;

writing to either STDOUT or Logfile

2002-10-22 Thread extern . Lars . Oeschey
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

RE: test file existence

2002-10-22 Thread extern . Lars . Oeschey
> sorry "\\c\$" ... ah, thx ;) Lars ___ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: test file existence

2002-10-22 Thread Dutrieux Yves
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

RE: test file existence

2002-10-22 Thread Dutrieux Yves
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

test file existence

2002-10-22 Thread extern . Lars . Oeschey
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