RE: active directory cookbook
-Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- win32-users-boun...@listserv.activestate.com] On Behalf Of John Mason Jr Sent: Tuesday, June 19, 2012 5:43 PM To: perl-win32-users@listserv.ActiveState.com Subject: Re: active directory cookbook On 6/18/2012 2:50 PM, Gomes, Rich wrote: This may be a long shot but worth a try. The author of Active Directory Cookbook used to have perl scripts for the examples given in the book (mainly VBScript) on his website: http://rallenhome.com/books/adcookbook2 That's been down for a while and there are no updated links for it and no email links for the author either. I used to reference the scripts quite a bit but never downloaded all of them for future reference. I am hoping someone here did or may know of a location where I could find them? Thanks! Rich You might try oreily website they normally host the sample/example code http://examples.oreilly.com/9780596521110/ I'm very sure that the author had additional examples that weren't present in the content from the O'Reilly Associates web-site. John ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: active directory cookbook
-Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- win32-users-boun...@listserv.activestate.com] On Behalf Of David N. Blank-Edelman Sent: Monday, June 18, 2012 7:42 PM To: perl-win32-users@listserv.ActiveState.com Subject: Re: active directory cookbook Hi Rich- On Jun 18, 2012, at 3:00 PM, perl-win32-users- requ...@listserv.activestate.com wrote: The author of Active Directory Cookbook used to have perl scripts for the examples given in the book (mainly VBScript) on his website: http://rallenhome.com/books/adcookbook2 That's been down for a while and there are no updated links for it and no email links for the author either. I used to reference the scripts quite a bit but never downloaded all of them for future reference. I am hoping someone here did or may know of a location where I could find them? The author of that book (a really nice guy, btw), seems to be alive and well and blogging here: http://robbieallen.com/ I suspect if you contact him through that site (or twitter) he'd be glad to help out. -- dNb If you do get a response -- please post to this perl-win32-users mailing list Thanks in advance, Paul ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: ActiveState announces ActivePerl 5.14.1 and 5.12.4
Any updates on when the next release of the PDK will be released? I thought I recall something about an updated release of PDK is required to support Perl 5.14. -Original Message- From: activeperl-boun...@listserv.activestate.com [mailto:activeperl- boun...@listserv.activestate.com] On Behalf Of Jan Dubois Sent: Wednesday, June 22, 2011 4:47 PM To: activep...@listserv.activestate.com; perl-win32- us...@listserv.activestate.com; mac...@perl.org Subject: ActiveState announces ActivePerl 5.14.1 and 5.12.4 ActiveState is pleased to announce ActivePerl 5.14.1 build 1401 and ActivePerl 5.12.4.1205, complete, ready-to-install binary distributions of Perl. Builds for Windows, Mac OS X and Linux are made freely available. Builds for Solaris, HP-UX and AIX are available with ActivePerl Business Edition. For detailed information or to download these releases, see: http://www.activestate.com/activeperl What's new in ActivePerl ActivePerl 5.14 is now based on the 5.14.1 release. You can read about all the changes since Perl 5.14.0 in this perldelta document: http://docs.activestate.com/activeperl/5.14/lib/pods/perl5141delta.html In addition, PerlScript and Perl for ISAPI support have been fixed in build 1401 for Windows as well. ActivePerl 5.12 is now based on the 5.12.4 release. You can read about all the changes since Perl 5.12.3 in this perldelta document: http://docs.activestate.com/activeperl/5.12/lib/pods/perl5124delta.html Getting Started === Whether you're a first-time user or a long-time fan, our free resources will help you get the most from ActivePerl. Mailing list archives: http://code.activestate.com/lists/activeperl/ Supported Platforms === ActivePerl is available for the following platforms: - Windows/x86 (32-bit) - Windows/x64 (64-bit) (aka AMD64) - Mac OS X - Linux/x86 (32 bit) - Linux/x86_64 (64-bit) (aka AMD64) - Solaris/SPARC (32-bit and 64-bit) (Business Edition only) - Solaris/x86 (32-bit)(Business Edition only) - HP-UX/PA-RISC (32-bit)(Business Edition only) - AIX/PowerPC (32-bit)(Business Edition only) More information about the Business Edition can be found here: http://www.activestate.com/business-edition Custom builds are available in the Enterprise Edition: http://www.activestate.com/enterprise-edition Feedback Everyone is encouraged to participate in making Perl an even better language. For bugs related to ActiveState use: http://bugs.activestate.com/enter_bug.cgi?product=ActivePerlversion=14 01 For bugs related directly to Perl please use the 'perlbug' utility. Enjoy! ___ ActivePerl mailing list activep...@listserv.activestate.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: TaskScheduler and Win32::OLE
Thanks -- I tried that earlier this week and was getting Server 500 errors. It worked today and I'm glad. -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Justin Allegakoen Sent: Saturday, April 03, 2010 8:52 PM To: perl-win32-users@listserv.ActiveState.com Subject: Re: TaskScheduler and Win32::OLE On 3 April 2010 22:21, Brzezinski, Paul J paul.brzezin...@hp.com wrote: I should have stated that I did first try to download this module its missing from the Activestate repository. So I downloaded the source and attempted to compile and its _broken_. It hasnt been updated in several years and according to the CPAN testers site this module fails to compile so its not just me. ppm installs fine for me with 5.10 with the additional repositories: C:\Perl\Programsppm install Win32-TaskScheduler Downloading ActiveState Package Repository packlist...done Updating ActiveState Package Repository database...done Downloading bribes packlist...done Updating bribes database...done Downloading trouchelle packlist...done Updating trouchelle database...done Downloading uwinnipeg packlist...not modified Downloading Win32-TaskScheduler-2.0.2...done Unpacking Win32-TaskScheduler-2.0.2...done Generating HTML for Win32-TaskScheduler-2.0.2...done Updating files in site area...done 9 files installed Just in ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs smime.p7s Description: S/MIME cryptographic signature ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: TaskScheduler and Win32::OLE
I should have stated that I did first try to download this module - it's missing from the Activestate repository. So I downloaded the source and attempted to compile and it's _broken_. It hasn't been updated in several years and according to the CPAN testers site this module fails to compile - so it's not just me. -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services From: Marcial Borde [mailto:marcialbo...@adinet.com.uy] Sent: Saturday, April 03, 2010 8:23 AM To: Brzezinski, Paul J Cc: perl-win32-users@listserv.ActiveState.com Subject: Re: TaskScheduler and Win32::OLE http://search.cpan.org/~UNICOLET/Win32-TaskScheduler2.0.3/TaskScheduler.pm http://taskscheduler.sourceforge.net/ El 02/04/2010 11:05 p.m., Brzezinski, Paul J escribió: I'm trying to use Win32::OLE to access the TaskScheduler [on Win2K3]. I would like to get all the configured tasks, finding any that contain a pattern in the task name and then display all/any details I can about those tasks. I'm using OleView.exe to look at the SCHEDULERLib (Scheduler 1.0 Type Library). Schedule: Scheduler.EnumTask: CLSSID: {056ADD67-DDB0-47BE-9F7D-DC652206F766} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x139e35c) 1.0\ = Scheduler 1.0 Type Library Scheduler.Schedule: CLSSID: {4EF17F94-3975-4ACF-B228-29485BDE5860} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x13bb3cc) 1.0\ = Scheduler 1.0 Type Library Scheduler.Task: CLSSID: {3AEC7772-2766-4C67-8487-4189C55DDE4E} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x13bb45c) 1.0\ = Scheduler 1.0 Type Library Scheduler.Trigger: CLSSID: {D8D9EEBC-0640-47AC-84FF-97C3A6B2FC79} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0xdc6ff4) 1.0\ = Scheduler 1.0 Type Library I have to say I'm quite lost and have reviewed Jan Dubois' doco on Win32::OLE but just haven't been able to understand it well enough. use Win32::OLE qw(in); $obj = Win32::OLE-new(Scheduler.Schedule) or die Error OLE:.Win32::OLE-LastError(); $obj-Reset; $obj-Activate; foreach $tsk (in $obj-Invoke( 'EnumAllTask')) { # print $tsk-Name, \n; # this generates an error my %NAMES; my @props = map { $_-{Name} } ( in $tsk-{Properties_} ); print Props = , join( , , @props), \n; } # no output is produced -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.commailto:Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: TaskScheduler and Win32::OLE
Respectively, XML might be an option for Vista and above, but I'm talking about W2K3 server. Yes, I should have stated I looked at the WMI method and dismissed that because it only gets the tasks added to the system via the AT command. The OLE objects are different between W2K3/XP and older vs. Vista/Win7/W2K8 and up, when I realized this I stopped trying to figure out the TaskLibrary 1.1 interface... I'm looking to be able to do this in-process instead of any kind of shell-out to launch schtasks. My original issue still stands. I would like to get all the configured tasks, finding any that contain a pattern in the task name and then display all/any details I can about those tasks. -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services From: Howard Tanner [mailto:tan...@optonline.net] Sent: Friday, April 02, 2010 10:41 PM To: Brzezinski, Paul J Cc: perl-win32-users@listserv.activestate.com Subject: RE: TaskScheduler and Win32::OLE There is no OLE object to work with tasks created by the Scheduled Tasks Wizard (the Win32_ScheduledJob object in WMI only works with tasks scheduled with AT). You can, however, use the schtasks command to produce a list of all scheduled tasks and then walk that list. schtasks can produce the output in several formats, xml probably being the most useful for your purposes. From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Brzezinski, Paul J Sent: Friday, April 02, 2010 10:05 PM To: perl-win32-users@listserv.activestate.com Subject: TaskScheduler and Win32::OLE I'm trying to use Win32::OLE to access the TaskScheduler [on Win2K3]. I would like to get all the configured tasks, finding any that contain a pattern in the task name and then display all/any details I can about those tasks. I'm using OleView.exe to look at the SCHEDULERLib (Scheduler 1.0 Type Library). Schedule: Scheduler.EnumTask: CLSSID: {056ADD67-DDB0-47BE-9F7D-DC652206F766} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x139e35c) 1.0\ = Scheduler 1.0 Type Library Scheduler.Schedule: CLSSID: {4EF17F94-3975-4ACF-B228-29485BDE5860} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x13bb3cc) 1.0\ = Scheduler 1.0 Type Library Scheduler.Task: CLSSID: {3AEC7772-2766-4C67-8487-4189C55DDE4E} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x13bb45c) 1.0\ = Scheduler 1.0 Type Library Scheduler.Trigger: CLSSID: {D8D9EEBC-0640-47AC-84FF-97C3A6B2FC79} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0xdc6ff4) 1.0\ = Scheduler 1.0 Type Library I have to say I'm quite lost and have reviewed Jan Dubois' doco on Win32::OLE but just haven't been able to understand it well enough. use Win32::OLE qw(in); $obj = Win32::OLE-new(Scheduler.Schedule) or die Error OLE:.Win32::OLE-LastError(); $obj-Reset; $obj-Activate; foreach $tsk (in $obj-Invoke( 'EnumAllTask')) { # print $tsk-Name, \n; # this generates an error my %NAMES; my @props = map { $_-{Name} } ( in $tsk-{Properties_} ); print Props = , join( , , @props), \n; } # no output is produced -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
TaskScheduler and Win32::OLE
I'm trying to use Win32::OLE to access the TaskScheduler [on Win2K3]. I would like to get all the configured tasks, finding any that contain a pattern in the task name and then display all/any details I can about those tasks. I'm using OleView.exe to look at the SCHEDULERLib (Scheduler 1.0 Type Library). Schedule: Scheduler.EnumTask: CLSSID: {056ADD67-DDB0-47BE-9F7D-DC652206F766} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x139e35c) 1.0\ = Scheduler 1.0 Type Library Scheduler.Schedule: CLSSID: {4EF17F94-3975-4ACF-B228-29485BDE5860} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x13bb3cc) 1.0\ = Scheduler 1.0 Type Library Scheduler.Task: CLSSID: {3AEC7772-2766-4C67-8487-4189C55DDE4E} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0x13bb45c) 1.0\ = Scheduler 1.0 Type Library Scheduler.Trigger: CLSSID: {D8D9EEBC-0640-47AC-84FF-97C3A6B2FC79} TypeLib: {C83F84A8-241A-4837-A6BA-1C5131141743} Library: Win32::TieRegistry=HASH(0xdc6ff4) 1.0\ = Scheduler 1.0 Type Library I have to say I'm quite lost and have reviewed Jan Dubois' doco on Win32::OLE but just haven't been able to understand it well enough. use Win32::OLE qw(in); $obj = Win32::OLE-new(Scheduler.Schedule) or die Error OLE:.Win32::OLE-LastError(); $obj-Reset; $obj-Activate; foreach $tsk (in $obj-Invoke( 'EnumAllTask')) { # print $tsk-Name, \n; # this generates an error my %NAMES; my @props = map { $_-{Name} } ( in $tsk-{Properties_} ); print Props = , join( , , @props), \n; } # no output is produced -- Paul J. Brzezinski Integration Engineering - GM HP Enterprise Services ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: CROSSP: C::Scan doesn't work with my Activestate perl
I ran into similar problem trying to use h2xs with -x switch. C::Scan isn't part of the ActiveState distribution, I think it's actually not part of standard perl distribution either... I can't recall if I had to load Data::Flow using PPM. If you're using microsoft's C compiler [looks like you are], it doesn't seem to accept input on it's STDIN. But you already knew this. I haven't tried this, but I did look at the code in C::Scan.pm, in the C::Preprocess section, the new sub contains the following: my $cmd = echo '\#include \$filename\' | $Cpp-{cppstdin} $Defines $addincludes $Cpp-{cppflags} $Cpp-{cppminus} |; #my $cmd = $Cpp-{cppstdin} $Defines $addincludes $Cpp-{cppflags} $Cpp-{cppminus} $filename |; #my $cmd = echo '\#include $filename' | $Cpp-{cppstdin} $Defines $addincludes $Cpp-{cppflags} $Cpp-{cppminus} |; So I'm wondering you could try this: #my $cmd = echo '\#include \$filename\' | $Cpp-{cppstdin} $Defines $addincludes $Cpp-{cppflags} $Cpp-{cppminus} |; my $cmd = $Cpp-{cppstdin} $Defines $addincludes $Cpp-{cppflags} $filename |; #my $cmd = echo '\#include $filename' | $Cpp-{cppstdin} $Defines $addincludes $Cpp-{cppflags} $Cpp-{cppminus} |; I ended up putting a .bat file in the same dir with h2xs.bat called cppstdin.bat, it's contents: @echo off cl /E %* Thompson, Lloyd D. (NSSD) wrote: Hello, I'm trying to use h2xs to create a perl interface to an existing c++ api library. The first problem I had was C::Scan wasn't installed so I installed it through ppm. Then C::Scan initially failed because cppstdin wasn't defined, so in lib\Config.pm I changed cppstdin='' to cppstdin='cl -nologo -E'. Now my current problem is when I call h2xs with header file arguments C::Scan executes my cppstdin statement but without a file argument. The error I receive is 'cl : Command line error D2003 : missing source filename'. So my thought is I missed something when I changed the cppstdin line in Config.pm. I have tried this h2xs process under cygwin and C::Scan was able to successfully parse the header file and h2xs generated a filled out .xs file (I had other issues with this I won't discuss here, which is why I'm trying to get the activestate version working). Any ideas are very appreciated. Thanks Lloyd ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs