Chris Chopping has asked for the wisdom of the Perl Monks concerning the following question:

On a new machine running windows 8.1 I have installed perl 5, version 16. I want to run a program that I developed on 5.8 which uses adminmisc. I cannot see how to get a version that is compatible with version 5.16 Can anyone help?

Replies are listed 'Best First'.
Re: Adminmisc & V5.16
by Discipulus (Canon) on Nov 14, 2014 at 08:01 UTC
    my little contribution:
    I tried to use this module with a domain controller 2k3 some years ago and.. i gave up after a week of tries. I have to admit i'm not so comfortable looking into source files nor visual studio project.

    I rewrote the code i needed and i also learned a lesson: win is not so friendly and many things can change between versions or service packs or even updates. Is easier to write some ugly but affordable code that parses output of native commands than use or maintain a module that deals with windows interface. Some Win32::* module seems anyway be stable over the years and maintained, but this is not the case of AdminMisc.

    More problems come in place because you pass from a 32bit tio a 64bit OS: "Where is my system32 folder?".. the dreadfull 'Filesystem Redirection' feature come in place..

    good luck
    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: Adminmisc & V5.16
by RonW (Parson) on Nov 14, 2014 at 00:11 UTC
Re: Adminmisc & V5.16
by Loops (Curate) on Nov 14, 2014 at 00:37 UTC

    You'll have to compile from source since packages don't seem to be available anywhere for v5.16. AdminMisc 2003 source was the last release.

      AdminMisc 2003 source was the last release

      When you look at that source you find a ppd file that references ppm packages built for perl-5.8 and earlier.
      This is not much use if you have perl-5.16.

      There's also a collection of headers, .cpp, and .c files - but no instructions that I could find as to how to build the damned thing. (Maybe I just didn't look hard enough.)
      I seem to recall that the idea was that you could build this as an MSVC++ Project if you had a Microsoft compiler that was capable of doing that and if you knew how to build a "Project".
      I have MSVC compilers that are "Project"-capable, but I don't know how to utilise that capability with this AdminMisc source - if, indeed, that is what one is supposed to do.
      Furthermore, I have no interest in researching how to build this (or any other) "Project".

      But if some knowledgeable person can provide a step-by-step account of how one can build this module from the given source (using either VC++ or MinGW) then I can probably provide ppm packages for it - and give it the availability it deserves.

      Cheers,
      Rob

        Hey Rob,

        Not something i'm likely to dig into either, but it would be great if someone who spends more time on windows could take a look. In any case, there is an MS Developer Studio project file included in that zip (AdminMisc.dsp) that should have most of the build info in it.

Re: Adminmisc & V5.16 ( Win32::AdminMisc
by Anonymous Monk on Nov 14, 2014 at 00:15 UTC
Re: Adminmisc & V5.16
by Anonymous Monk on Nov 14, 2014 at 17:40 UTC
    "Can anyone help?"

    This is what you get for using Windows.