Microsoft Server OS
--
Questions
--
Followers
Top Experts
I want a script to scan the whole network or a list of machines and find where Visio and Project is installed with its versions.
Regards
Sharath
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
1) You can check for the files
2) check for the registry
3) Use WMI
The problem is versions and different types of machines.
:: READ THIS FIRST
:: ================
:: * To run this script you must have domain administrators rights.
:: * This script require "Computers.txt" file on C: drive root from where it will pick computer names.
:: * Successful run will generate "SoftwareRpt.txt" on C: drive root.
:: * Copy and Paste following script into notepad and save it with any name having .bat extension.
:: Batch Script Start
@Echo Off
SETLOCAL EnableDelayedExpansion
IF NOT EXIST C:\Computers.txt Goto ShowErr
FOR %%R IN (C:\Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr
IF EXIST C:\SoftwareRpt.txt  DEL /F /Q C:\SoftwareRpt.txt
FOR /F %%c IN ('Type Computers.txt') Do (
  Echo Querying: %%c
           PING -n 2 -w 800 %%c|Find /I "TTL" >NUL
           IF NOT ErrorLevel 1 (
                 SET Visio=F
                 SET Project=F
                 SET Qry=REG QUERY \\%%c\HKLM\Software\Micros
                 FOR /F "Tokens=4 delims=: " %%v IN ('!Qry!') DO (IF NOT "%%v"=="0" SET Visio=T)
                 SET Qry=REG QUERY \\%%c\HKLM\Software\Micros
                 FOR /F "Tokens=4 delims=: " %%v IN ('!Qry!') DO (IF NOT "%%v"=="0" SET Project=T)
                 IF "!Visio!"=="T" Echo %%c, MS Visio Installed.>>C:\SoftwareRpt
                 IF "!Project!"=="T" Echo %%c, MS Project Installed.>>C:\SoftwareRpt
    )ELSE (Echo %%c, Error: Not able to connect)
)
Goto EndScript
:ShowErr
Echo "C:\Computers.txt" file does not exist or file is empty!
:EndScript
ENDLOCAL
:: Batch Script End
It is showing Installed in machines where no software is installed and even shows Project installed in a machine where only Visio is installed...






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Click Start -> Run -> Cmd.exe
REG QUERY \\MachineName\HKLM\Softwar
                ^-------- put remote machine name here.
REG QUERY \\MachineName\HKLM\Softwar
                ^-------- put remote machine name here.
Where only Visio is installed and No Ms Project.
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\sharathr>cd\
C:\>REG QUERY \\MachineName\HKLM\Softwar
^C
C:\>REG QUERY \\dev-chen-mrd100\HKLM\Sof
HKEY_LOCAL_MACHINE\Softwar
D3-8CFE-0150048383C9}
  ProductNameBrand   REG_SZ   Microsoft Office Visio Professional 2003
  ProductName   REG_SZ   Microsoft Office Visio Professional 2003
  ProductNameNonQualified   REG_SZ   Microsoft Office Visio Professional 200
3
  VisioName   REG_BINARY   4D006900630072006F0073006F
30069006F000000
  VisioNameVersion   REG_BINARY   4D006900630072006F0073006F
004F0066006600690063006500
00730069006F006E0061006C00
  SmartSourceDir   REG_SZ   \\chennai-fs01\Chennai_FS\
VISIO2003\
HKEY_LOCAL_MACHINE\Softwar
HKEY_LOCAL_MACHINE\Softwar
Visio Local Shapes
HKEY_LOCAL_MACHINE\Softwar
Visio Web Shapes
HKEY_LOCAL_MACHINE\Softwar
  Path   REG_SZ   C:\Program Files\Microsoft Office\Visio11\DLL\
HKEY_LOCAL_MACHINE\Softwar
ents And Revisions
HKEY_LOCAL_MACHINE\Softwar
\Comments And Revisions
HKEY_LOCAL_MACHINE\Softwar
00-0000-0000000FF1CE}
  VisioSDKName   REG_SZ   Microsoft Visio Software Development Kit (SDK)
  VisioSDKNameVersion   REG_SZ   Microsoftr Office Visior 2007 Software Deve
lopment Kit (SDK)
  VisioNameVersion   REG_SZ   Microsoftr Office Visior 2007
  VisioName   REG_SZ   Microsoft Visio
HKEY_LOCAL_MACHINE\Softwar
nts And Revisions
HKEY_LOCAL_MACHINE\Softwar
00409-6000-11D3-8CFE-01500
  RelativeCachePath   REG_SZ   FILES\PFILES\MSOFFICE\VISI
  RelativeSourcePath   REG_SZ   FILES\PFILES\MSOFFICE\VISI
HKEY_LOCAL_MACHINE\Softwar
00409-6000-11D3-8CFE-01500
  Path   REG_SZ   F:\Softwares\Office Products\Visio\VISIO2003\
HKEY_LOCAL_MACHINE\Softwar
End of search: 21 match(es) found.
C:\>REG QUERY \\dev-chen-mrd100\HKLM\Sof
t"
HKEY_LOCAL_MACHINE\Softwar
D2-BFCA-00C04F990235}
  (Default)   REG_SZ   Solution Items Project
HKEY_LOCAL_MACHINE\Softwar
End of search: 2 match(es) found.
C:\>REG QUERY \\indiasophos\HKLM\Softwar
HKEY_LOCAL_MACHINE\Softwar
ents And Revisions
HKEY_LOCAL_MACHINE\Softwar
\Comments And Revisions
HKEY_LOCAL_MACHINE\Softwar
00-0000-0000000FF1CE}
  VisioSDKName   REG_SZ   Microsoft Visio Software Development Kit (SDK)
  VisioSDKNameVersion   REG_SZ   Microsoftr Office Visior 2007 Software Deve
lopment Kit (SDK)
  VisioNameVersion   REG_SZ   Microsoftr Office Visior 2007
  VisioName   REG_SZ   Microsoft Visio
HKEY_LOCAL_MACHINE\Softwar
nts And Revisions
End of search: 7 match(es) found.
C:\>REG QUERY \\indiasophos\HKLM\Softwar
HKEY_LOCAL_MACHINE\Softwar
D2-BFCA-00C04F990235}
  (Default)   REG_SZ   Solution Items Project
End of search: 1 match(es) found.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Click Start -> Run -> Cmd.exe
REG QUERY \\indiasophos\HKLM\Softwar
REG QUERY \\indiasophos\HKLM\Softwar
REG QUERY \\dev-chen-mrd100\HKLM\Sof
REG QUERY \\dev-chen-mrd100\HKLM\Sof
C:\>REG QUERY \\indiasophos\HKLM\Softwar
End of search: 0 match(es) found.
C:\>REG QUERY \\indiasophos\HKLM\Softwar
"
End of search: 0 match(es) found.
C:\>REG QUERY \\dev-chen-mrd100\HKLM\Sof
ject"
HKEY_LOCAL_MACHINE\Softwar
End of search: 1 match(es) found.
C:\>REG QUERY \\dev-chen-mrd100\HKLM\Sof
HKEY_LOCAL_MACHINE\Softwar
HKEY_LOCAL_MACHINE\Softwar
End of search: 2 match(es) found.
dev-chen-mrd100 does not have MS Project installed? or first installed then uninstalled? Can you check that system physically does that system have only Visio and no MS Project?






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I think i would have installed Project on Dev-chen-mrd100 and uninstalled...
Microsoft Server OS
--
Questions
--
Followers
Top Experts
The Microsoft Server topic includes all of the legacy versions of the operating system, including the Windows NT 3.1, NT 3.5, NT 4.0 and Windows 2000 and Windows Home Server versions.