Question : Script to determine Server 2003 services running under the domain Admin account?

Hi,

Before changing the admin account password, I need to find which, if any, services are running on our servers under the domain Administartor account.

Does anyone know what the best way of doing this is or have a script to run?

Thanks

Answer : Script to determine Server 2003 services running under the domain Admin account?

Download DumpSec (http://www.systemtools.com/somarsoft), install the download on an XP machine, uncheck "Hyena"; then copy DumpSec.exe and the help file into the folder with the script below.
In the script, specify the path and name of an input file with the server names you want to query (one name per line), and the output file; the script will generate a comma separated file which you can import into Excel and process there.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
@echo off
setlocal
:: *** (Path and) name of the file with a list of servers:
set ServerFile=test.txt
:: *** (Path and) name of the file with the comma separated results:
set ResultFile=test.csv
:: *** Accounts to search for; several accounts can be specified, separated by a space:
set FindAccounts=%UserDomain%\Administrator

set DumpsecFile=%~dpn0.tmp
if exist "%ResultFile%" del "%ResultFile%"
for /f "tokens=1" %%a in ('type "%ServerFile%"') do call :process %%a
goto :eof

:process
set Server=%~1
echo Processing %Server% ...
dumpsec /computer=\\%Server% /rpt=services /outfile=%DumpsecFile% /saveas=csv /noheader
for /f "tokens=1,5 delims=," %%a in ('type "%DumpSecFile%" ^| findstr "%FindAccounts%"') do (
  >>"%ResultFile%" echo "%Server%","%%a","%%b"
)
Random Solutions  
 
programming4us programming4us