Forum posts for spoolsv.exe

How can I automate the Tasklist command on my workstation to check a specific process on X n…

I'm trying to check what the status is on my XenApp servers for the spoolsv.exe process. I've got the command down to run individually from my XP workstation, but can't seem to get it to iterate through a text file. Here's what I have so far, what will make this populate Servers X-XX on my CMD screen?

@echo off

FOR /F 'usebackq' %%G IN ('C:Documents and SettingsuseridDesktopScriptsservers.txt') DO echo tasklist /S %%G /u domainuserid | find 'spoolsv.exe'

pause


I can't seem to get it to run correctly, and sometimes it will just pop up my servers.txt file in notepad and not even run. What am I missing?

View complete forum thread with replies

Other posts related to spoolsv.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How can I automate the Tasklist command on my workstation to check a specific process on X n…
Calling fopen on Windows core files returns NULL pointer
How to check if service spoolsv.exe is responding to requests without printing?
Spooler memory increases when System.Printing.Printqueue object is created
Limiting an ATL exe server to one process (instance) only
Squeezing more speed out of Windows print spooler

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.