Q. How can I determine what Admin Tools are installed on a computer?

I have scripted AdminTools.bat to enumerate the Administrative Tools that are installed on the local computer.

If you simply type AdminTools at a CMD.EXE prompt, you get a list of the tools. If you wish to process the list in a batch, use:

for /f "Tokens=*" %%t in ('AdminTools') do (
 call :DoSomeThing "%%t"
)
AdminTools.bat contains:
@echo off
if exist "%TEMP%\AdminTools.vbs" goto :doit
@echo Const ADMINISTRATIVE_TOOLS = ^&H2f^&>"%TEMP%\AdminTools.vbs"
@echo Set oShell = CreateObject("Shell.Application")>>"%TEMP%\AdminTools.vbs"
@echo Set oFolder = oShell.Namespace(ADMINISTRATIVE_TOOLS)>>"%TEMP%\AdminTools.vbs" 
@echo Set oTools = oFolder.Items>>"%TEMP%\AdminTools.vbs"
@echo For i = 0 to oTools.Count ^- 1 >>"%TEMP%\AdminTools.vbs"
@echo.    Wscript.Echo oTools.Item(i)>>"%TEMP%\AdminTools.vbs"
@echo Next>>"%TEMP%\AdminTools.vbs"
:doit
cscript //nologo "%TEMP%\AdminTools.vbs" 


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish