PULIST failing to output correctly

Posted on 2005-04-08
Last Modified: 2008-02-07
We're running PULIST here as part of a batch file (PULIST comes from MS in the resource toolkit). On some machines, the PULIST fails to be outputted to a file or as a pipe, while on others it works fine.

For example:
pulist | findstr /I /C:test.exe && ECHO FOUND & GOTO endit

Works on some machines fails on others (even when test.exe is outputted from pulist normally).


pulist > test.txt

Fails on some computers, it just creates a blank test.txt file (overwriting what is in there), but contains nothing...  Any ideas?
Question by:eAi2k
    LVL 95

    Expert Comment

    by:Lee W, MVP
    What are the clients?  XP?  2000?  NT4?  98/Me?
    LVL 1

    Author Comment

    Clients are all running XP
    LVL 95

    Accepted Solution

    Not sure why it's not working then - other than perhaps it's because it's a tool designed for 2000 - and while XP is VERY similar under the hood, so-to-speak, it's not the same.

    Any reason you're not using "tasklist" instead of "pulist"?
    LVL 5

    Expert Comment


    In this case, I don't think the /C: option is required (no spaces in your criteria).

    I'd tru it like this to see if you get better results:

    pulist | findstr /I "test.exe" && ECHO FOUND & GOTO endit
    LVL 1

    Author Comment

    Used tasklist instead of pulist and it worked fine. Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT ( The crux of this batch f…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    759 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

    13 Experts available now in Live!

    Get 1:1 Help Now