RE: How do I get processor and memory information?

2002-04-01 Thread Timothy Johnson
The problem with getting info from Win9x/ME is that you cannot normally access the registry remotely (which is where most of the information is obtained). If I had the time I might work on it, but I don't think I could ever get it to work remotely. -Original Message- From: macnerd [mail

RE: How do I get processor and memory information?

2002-04-01 Thread macnerd
Wow. Awesome. Could you add Win 9X/Me too... THis is cool. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Timothy Johnson > Sent: Friday, March 29, 2002 9:52 AM > To: 'Vinod Panikar'; [EMAIL PROTECTED] > Subject: RE: How do I get processor and

RE: Fetching assoc-nt-account for Exchange 5.5 mailbox via Win32::OLE

2002-04-01 Thread Bullock, Howard A.
>>This is very awesome and useful, not just for only Exchange. >>I would be curious on how to do this through CDO as well. Well here is some ADO OLE stuff. &GetSidFromMailbox is the specific code to get the assoc-nt-account. syntax: Progname.pl domain\account use Win32::OLE; use strict; # (RE

RE: Copying Sub-Directories

2002-04-01 Thread Danny Wong
Try using use File::NCopy qw(copy); You need to install the ppm module. I found it very helpful... Hope its what you're looking for? Thanks Danny Wong -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of $Bill Luebkert Sent: Monday, April 01, 2002 2:53 PM

Re: Copying Sub-Directories

2002-04-01 Thread $Bill Luebkert
rAuL wrote: > Much to my surprise and inexperience, I cannot find a Perl command to do wilcard >copying of files and subdirectoies within a directory. Is there such a thing? File::Find (or a recursive opendir/readdir) and a RE to do the wildcarding is what I would use. -- ,-/- __ _

RE: Fetching assoc-nt-account for Exchange 5.5 mailbox via Net::LDAP

2002-04-01 Thread macnerd
This is very awesome and useful, not just for only Exchange. I would be curious on how to do this through CDO as well. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Harikrishnan Bhaskaran > Sent: Wednesday, March 27, 2002 1:41 PM > To: '[EMAIL P

RE: Extract email address from a string

2002-04-01 Thread macnerd
Are you going to use this for spamming. I am curious if people will start ripping email addresses out of WHOIS listings for spam. My ISP listed my email-addr on WHOIS, which I am not happy about, because of the possibility. - Joaquin > -Original Message- > From: [EMAIL PROTECTED] > [m

RE: APOLOGIES RE: Win32::Process::Create Questions

2002-04-01 Thread macnerd
Don't worry. We've been there ourselves. - Joaquin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > rAuL > Sent: Wednesday, March 27, 2002 7:08 AM > To: Greene, Adam S; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: APOLOGIES RE: Win32::Proce

RE: enumerating machines...

2002-04-01 Thread Greene, Adam S
If you have Active Directory and are only concerned about systems in AD, you can get a list of systems, OS type and version, and machine password age by querying AD via LDAP (Net::LDAP). Password age is of course not a nice number to work with, but you can munge the 64-bit integer you get back. I

Re: AT scripts

2002-04-01 Thread Chuck Lawhorn
You might be better off using the Win32::Lanman module and its NetSchedule series of commands. BTW, my wife grew up in Marion, SC. --Chuck --- "Vaughn, Terry" <[EMAIL PROTECTED]> wrote: > Anybody out there have any script examples using the AT command. I'm > particulary looking for examples w

AT scripts

2002-04-01 Thread Vaughn, Terry
Title: AT scripts Anybody out there have any script examples using the AT command.  I'm particulary looking for examples with stdout and stderr usage. Any code is appreciated. TEV Terry E. Vaughn, Ph.D. Business Analyst, LVS IT ArvinMeritor Marion, SC 29571 phone:  843-464-5419 Comnet: 

RE: Copying Sub-Directories

2002-04-01 Thread Timothy Johnson
There you go. I knew there had to be something out there, I just haven't been desperate enough to find it yet. -Original Message- From: Chuck Lawhorn [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 12:44 PM To: [EMAIL PROTECTED] Subject: RE: Copying Sub-Directories Take a look

RE: Copying Sub-Directories

2002-04-01 Thread Chuck Lawhorn
Take a look at the File::Recurse module. --Chuck --- Timothy Johnson <[EMAIL PROTECTED]> wrote: > > The major thing to remember when porting xcopy statements to NT4 is that the > /y switch doesn't work with NT4. As for the subdirectories, this might > give you a start. It's some code I wrote

RE: enumerating machines...

2002-04-01 Thread Timothy Johnson
If you want to get the machines on the domain, you'll want to use another function. The NetAdmin GetServers function checks for machines that are on the NETWORK that are running various services, in this case the Server service. Try using GetUsers and filtering for users with a $ at the end of

RE: Copying Sub-Directories

2002-04-01 Thread Timothy Johnson
The major thing to remember when porting xcopy statements to NT4 is that the /y switch doesn't work with NT4. As for the subdirectories, this might give you a start. It's some code I wrote when I was first figuring out how to recurse through subdirectories. It works fairly well, although a tr

RE: Copying Sub-Directories

2002-04-01 Thread Chuck Lawhorn
If you want to delete files from a directory tree, the File::Path module has an rmtree command. --Chuck --- "DePriest, Jason R." <[EMAIL PROTECTED]> wrote: > You can use slightly ugly recursive code.. I use the following to delete > files from the temp directories recursively, but it could be e

Re: enumerating machines...

2002-04-01 Thread Chuck Lawhorn
If you list all the accounts in your domain, the workstation accounts will all end with a dollar sign. I have used that method to get a list of worklststions on a domain. --Chuck --- Mathew Shember <[EMAIL PROTECTED]> wrote: > Type_ALL is as the name implies. Everything. So If you have win9x

RE: Copying Sub-Directories

2002-04-01 Thread DePriest, Jason R.
Title: RE: Copying Sub-Directories You can use slightly ugly recursive code.. I use the following to delete files from the temp directories recursively, but it could be easily modified to copy them: #!perl -s use Cwd; if (! &AlreadyExist("$ENV{TMP}")) {     push(@TempDirs,"$ENV{TMP}");

RE: Copying Sub-Directories

2002-04-01 Thread rAuL
This would not do becuase I once had a situation where the verswion of XCOPY on Windows 2000 was different from the one with NT 4.0. On 01 Apr 2002, Edgington, Jeffrey wrote: > I would use xcopy though. > > system ("xcopy \/E \/-Y"); > > /E - copies dirs and subdirs including > empty ones. >

RE: Copying Sub-Directories

2002-04-01 Thread Edgington, Jeffrey
I would use xcopy though. system ("xcopy \/E \/-Y"); /E - copies dirs and subdirs including empty ones. /-Y -no prompting when overwriting Just do 'xcopy /?' at a cmd to look at additional options for copy. jeff e. -Original Message- From: rAuL [mailto:[EMAIL PROTECTED]] Sent: M

Re: enumerating machines...

2002-04-01 Thread Mathew Shember
Type_ALL is as the name implies. Everything. So If you have win9x, me, They will get counted as well. You could change it to SV_TYPE_NT.This does list 2000 and XP machines. Other things to watch. Samba servers will appear. Network Appliance boxes will appear. Finally, keep in mind. Y

Copying Sub-Directories

2002-04-01 Thread rAuL
Much to my surprise and inexperience, I cannot find a Perl command to do wilcard copying of files and subdirectoies within a directory. Is there such a thing? Thanks ___ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.

Re: enumerating machines...

2002-04-01 Thread lgbarr
I don't have much experience with W2K, but on NT I found that it usually returns only the machines that are powered on and connected to the network at the time you run the script. So you might get different number of machines depending on the time of day you run it. Cheers, /LG

enumerating machines...

2002-04-01 Thread Rick Coloccia
Everyone, Maybe someone has some experience doing what I'm trying to do: I am in a mixed windows 2000 domain (not native mode, there are still nt4 boxes, etc, around.) When I go into the Active Directory Users and Computers application and view all the computers I have, I see that there are 7

RE: Extract email address from a string

2002-04-01 Thread Jason Scott Gessner
The following regular expression will match a valid email string... \w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$ - jason scott gessner [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Christopher A. Libby

Extract email address from a string

2002-04-01 Thread Christopher A. Libby
Does anyone have some code that would extract an email address from a string into another string? I'm trying to parse WHOIS listings for email addresses. -Chris ___ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.Acti

Re: Disabling Anonymous FTP

2002-04-01 Thread Mike Brentlinger
You could use regmon to see what registry keys that check box changes. http://www.sysinternals.com/ntw2k/source/regmon.shtml Original Message Follows From: "Kevin Pendleton" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Disabling Anonymous FTP Date: Fri, 29 Mar 2002 09:04:37 -0700

Re: Disabling Anonymous FTP

2002-04-01 Thread Mike Brentlinger
You could use regmon to see what registry keys that check box changes. http://www.sysinternals.com/ntw2k/source/regmon.shtml Original Message Follows From: "Kevin Pendleton" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Disabling Anonymous FTP Date: Fri, 29 Mar 2002 09:04:37 -0700