AD Group Membership and running an EXE from a KIX script

Posted on 2008-11-19
Last Modified: 2012-05-05

im doing a notes to exchange migration...

I am using a program called outlook profiler to create the outlook 2003 mail profile. It works a treat however I have been running it from a USB thumb drive manually for each machine. Its taking too long so I want to Automate the process so its faster.


I have created an AD security group called OutlookProfiler. After I have migrated the users' mailboxes over from Notes to Exchange I want to be able to add this group to their AD users account and when they login the login script will run and see that they are member of this group and call  the Profiler.exe to run and create the Outlook mail profile.

In our environment we use a batch file to call a Kix script...

batch file entry

%0\..\Kix32.exe %0\..\lexum.kix

I have added this line in lexum.kix

IF INGROUP ("OutlookProfiler") = 1
       ?"User is member of the Outlook Profiler Group"
       SHELL '%comspec%' "%0\..\profiler.exe %0\..\outlookprofiler\profiler.exe"

I have copied the outlookprofiler directory containing the profiler.exe file to the netlogon folder.

We have a number of sites so I want the entry in the script to use the closest DC. im told the %0\..\ entry will do this...

It doesn't seem to work....So

1) Am I doing this all correctly or is their a batch file, another Script that would make it easier?

2) If i am doing it correctly is the entry in the lexum.kix wrong?

Thanks  very very much
Question by:Sudoku_Warriors
    LVL 28

    Accepted Solution


    IF INGROUP ("OutlookProfiler")
       ?"User is member of the Outlook Profiler Group"
        SHELL "%COMSPEC% /c %0\..\outlookprofiler\profiler.exe"

    But I'm not sure that the %0 will work in this case (and I can't test right now). If it doesn't work use:

    IF INGROUP ("OutlookProfiler")
       ?"User is member of the Outlook Profiler Group"
        SHELL "%COMSPEC% /c %LOGONSERVER%\NETLOGON\outlookprofiler\profiler.exe"

    It will run profiler.exe from the DC thats authenticating the user.
    LVL 1

    Author Comment

    Yep awesome...This is the one that worked

    IF INGROUP ("OutlookProfiler")
       ?"User is member of the Outlook Profiler Group"
        SHELL "%COMSPEC% /c %LOGONSERVER%\NETLOGON\outlookprofiler\profiler.exe"

    Thanks so much..its going to save many hours of work for me.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now