RE: Pulling Email Address from ADSI?

2003-07-01 Thread Messenger, Mark
Title: RE: Pulling Email Address from ADSI? When I run that (with values supplied for $strusername and $strMyOU), I receive the following error: Win32::OLE(0.1601) error 0x8002000e: "Invalid number of parameters"     in METHOD/PROPERTYGET "GetObject" It's as if I need to specify the type o

RE: Pulling Email Address from ADSI?

2003-07-01 Thread Tim Johnson
Converting VBS scripts to Perl using OLE is really pretty easy. Yours would probably come out something like this: ### use Win32::OLE; use strict; my($username,$fullname,$MyOU) = @ARGV; my $adsi = Win32::OLE->GetObject("LDAP://cn=$username,OU=Users,ou=$MyOU,ou=Support,dc=D I

RE: Pulling Email Address from ADSI?

2003-07-01 Thread Stum, Matt
If you're using Exchange 2000 then the 'proxyAddresses' attribute is really what you want, not the 'mail' attribute. 'proxyAddresses' is a multi-value attribute, and you're looking for values that begin with 'SMTP:' (only one) and 'smtp:' (zero or more). The person can receive messages addressed

RE: IE Settings

2003-07-01 Thread Tim Johnson
Yep. See Mark's post. -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:05 PM To: 'Tim Johnson'; Perl-Win32-Admin (E-mail) Subject: RE: IE Settings > > > No module, but I believe the information you seek is in the Registry. Thanks. I neve

RE: Pulling Email Address from ADSI?

2003-07-01 Thread Sullivan, Patrick
This example runs thru employeeID but you can cut that out if you want. use Net::LDAP; use Net::LDAP::Util qw(ldap_error_name ldap_error_text); my $admin = 'CN=Admin,OU=DEN,OU=Facilities,DC=corp,DC=company,DC=com'; my $base = 'DC=corp,DC=company,DC=com'; my $ldapserver = 'ldapsrv.corp.company.com

RE: Pulling Email Address from ADSI?

2003-07-01 Thread Steven Manross
You can use Win32::OLE and convert that script to perl... use Win32::OLE; $ldapstr = "LDAP://cn="; . $strusername . ",OU=Users,ou=" . $strMyOU .",ou=Support,dc=DIRECTV,dc=com"; $objUser = Win32::OLE->new("ADsNamespaces"); $objUser->GetObject($ldapstr); if (Win32::OLE->LastError() != 0) { pri

Pulling Email Address from ADSI?

2003-07-01 Thread Messenger, Mark
Does anyone know a way to use Win32::OLE (or any other module, for that matter) to pull the Active Directory field known as "E-mail" in AD Users and Computers? (The SMTP address associated with an account) Up to this point, I've been shelling out to a VBS (I feel dirty). A snippet follows, as it

RE: IE Settings

2003-07-01 Thread Kipp, James
> > > No module, but I believe the information you seek is in the Registry. Thanks. I never used any of the Reg modules. Would Win32::TieRegistry do the job? ___ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.Active

RE: IE Settings

2003-07-01 Thread Messenger, Mark
Title: RE: IE Settings This sounds like an excellent job for GPO or a logon script, like so... use Win32::TieRegistry( Delimiter=>"\\", ArrayValues=>0 ); my $regstr="\\HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\5.0\\Cache\\Content\\"; my $regobj=$

RE: IE Settings

2003-07-01 Thread Tim Johnson
No module, but I believe the information you seek is in the Registry. -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 10:40 AM To: Perl-Win32-Admin (E-mail) Subject: IE Settings Is there a module for that can be used to configure IE 5.5 settin

IE Settings

2003-07-01 Thread Kipp, James
Is there a module for that can be used to configure IE 5.5 settings? I need to set a cache limit (for all users) on a bunch of NT machines. Thanks ___ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mail