Link to home
Create AccountLog in
Microsoft Server OS

Microsoft Server OS

--

Questions

--

Followers

Top Experts

Avatar of bsharath
bsharath🇮🇳

Find all machines where Visio and Project is installed
Hi,

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.


Avatar of BSonPoshBSonPosh🇺🇸

You know your enviroment better than anyone here. What do you think would be the most consistent way to get this info.

1) You can check for the files
2) check for the registry
3) Use WMI

The problem is versions and different types of machines.

Avatar of Farhan KaziFarhan Kazi🇦🇺

:: ================
:: 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\Microsoft\Office\ /s /f "Visio" 2^>NUL ^|Find /I "End of search"
                  FOR /F "Tokens=4 delims=: " %%v IN ('!Qry!') DO (IF NOT "%%v"=="0" SET Visio=T)
                  SET Qry=REG QUERY \\%%c\HKLM\Software\Microsoft\Office\ /s /f "MS Project" 2^>NUL ^|Find /I "End of search"
                  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.txt
                  IF "!Project!"=="T" Echo %%c, MS Project Installed.>>C:\SoftwareRpt.txt
       )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

Avatar of bsharathbsharath🇮🇳

ASKER

Farhan,

It is showing Installed in machines where no software is installed and even shows Project installed in a machine where only Visio is installed...

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Farhan KaziFarhan Kazi🇦🇺

Can you please apply following commands (on both machines where these softwares are installed and where they does not present) and post results here.

Click Start -> Run -> Cmd.exe

REG QUERY \\MachineName\HKLM\Software\Microsoft\Office\ /s /f "Visio"
                               ^-------- put remote machine name here.

REG QUERY \\MachineName\HKLM\Software\Microsoft\Office\ /s /f "MS Project"
                               ^-------- put remote machine name here.

Avatar of bsharathbsharath🇮🇳

ASKER

I get this for Dev-chen-mrd100
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\Software\Microsoft\Office\ /s /f "Visio"
^C
C:\>REG QUERY \\dev-chen-mrd100\HKLM\Software\Microsoft\Office\ /s /f "Visio"

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Registration\{90510409-6000-11
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    4D006900630072006F0073006F00660074002000560069007
30069006F000000
    VisioNameVersion    REG_BINARY    4D006900630072006F0073006F0066007400AE0020
004F0066006600690063006500200056006900730069006F00AE002000500072006F006600650073
00730069006F006E0061006C002000320030003000330020005300500032000000
    SmartSourceDir    REG_SZ    \\chennai-fs01\Chennai_FS\Office Products\Visio\
VISIO2003\

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Visio

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Visio\Shape Gallery\Providers\
Visio Local Shapes

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Visio\Shape Gallery\Providers\
Visio Web Shapes

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Visio\Solution\CMax20
    Path    REG_SZ    C:\Program Files\Microsoft Office\Visio11\DLL\

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\Excel\Document Inspectors\Comm
ents And Revisions

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\PowerPoint\Document Inspectors
\Comments And Revisions

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\Registration\{90120000-0030-00
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\Software\Microsoft\Office\12.0\Word\Document Inspectors\Comme
nts And Revisions

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Delivery\SourceEngine\Downloads\900
00409-6000-11D3-8CFE-0150048383C9\Resources\SETUP.CHM_1033
    RelativeCachePath    REG_SZ    FILES\PFILES\MSOFFICE\VISIO11\1033\SETUP.CHM
    RelativeSourcePath    REG_SZ    FILES\PFILES\MSOFFICE\VISIO11\1033\SETUP.CHM


HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Delivery\SourceEngine\Downloads\900
00409-6000-11D3-8CFE-0150048383C9\Sources\90510409-6000-11D3-8CFE-0150048383C9
    Path    REG_SZ    F:\Softwares\Office Products\Visio\VISIO2003\

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Visio

End of search: 21 match(es) found.

C:\>REG QUERY \\dev-chen-mrd100\HKLM\Software\Microsoft\Office\ /s /f "Ms projec
t"

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\MSE\Projects\{D1DCDB85-C5E8-11
D2-BFCA-00C04F990235}
    (Default)    REG_SZ    Solution Items Project

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\MS Project

End of search: 2 match(es) found.


Avatar of bsharathbsharath🇮🇳

ASKER

I get this for a machine where no Vision or Ms project is installed.

C:\>REG QUERY \\indiasophos\HKLM\Software\Microsoft\Office\ /s /f "Visio"

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\Excel\Document Inspectors\Comm
ents And Revisions

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\PowerPoint\Document Inspectors
\Comments And Revisions

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\Registration\{90120000-0030-00
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\Software\Microsoft\Office\12.0\Word\Document Inspectors\Comme
nts And Revisions

End of search: 7 match(es) found.



C:\>REG QUERY \\indiasophos\HKLM\Software\Microsoft\Office\ /s /f "Ms Project"

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\MSE\Projects\{D1DCDB85-C5E8-11
D2-BFCA-00C04F990235}
    (Default)    REG_SZ    Solution Items Project

End of search: 1 match(es) found.


Free T-shirt

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.


Avatar of Farhan KaziFarhan Kazi🇦🇺

What about following?

Click Start -> Run -> Cmd.exe

REG QUERY \\indiasophos\HKLM\Software\Microsoft\Office\ /s /e /f "Visio"
REG QUERY \\indiasophos\HKLM\Software\Microsoft\Office\ /s /e /f "MS Project"

REG QUERY \\dev-chen-mrd100\HKLM\Software\Microsoft\Office\ /s /e /f "Visio"
REG QUERY \\dev-chen-mrd100\HKLM\Software\Microsoft\Office\ /s /e /f "MS Project"

Avatar of bsharathbsharath🇮🇳

ASKER

I get this,


C:\>REG QUERY \\indiasophos\HKLM\Software\Microsoft\Office\ /s /e /f "Visio"

End of search: 0 match(es) found.

C:\>REG QUERY \\indiasophos\HKLM\Software\Microsoft\Office\ /s /e /f "MS Project
"

End of search: 0 match(es) found.



C:\>REG QUERY \\dev-chen-mrd100\HKLM\Software\Microsoft\Office\ /s /e /f "MS Pro
ject"

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\MS Project

End of search: 1 match(es) found.


C:\>REG QUERY \\dev-chen-mrd100\HKLM\Software\Microsoft\Office\ /s /e /f "Visio"


HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Visio

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Visio

End of search: 2 match(es) found.




Avatar of Farhan KaziFarhan Kazi🇦🇺

indiasophos system has not Visio and no MS Project installed rite?

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?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of bsharathbsharath🇮🇳

ASKER

You are correct Farhan.

I think i would have installed Project on Dev-chen-mrd100 and uninstalled...

ASKER CERTIFIED SOLUTION
Avatar of Farhan KaziFarhan Kazi🇦🇺

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account
Microsoft Server OS

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.