Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 446507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:28:39+00:00 2026-05-12T21:28:39+00:00

Does anyone know of a tool that would allow me to generate a report

  • 0

Does anyone know of a tool that would allow me to generate a report of the assemblies installed to the .NET GAC on all the servers in my web farm? (30-40 servers)

Or alternatively, does anyone have a pointer or a link on some way of accessing the information programmatically, via WMI, or remote registry query, or some other technology?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:28:40+00:00Added an answer on May 12, 2026 at 9:28 pm

    Thanks Kragen, for hinting that beneath the veneer of Explorer’s GAC view, there existed files I could query with the System.IO namespace. Luckily I have network access to each server.

    I just needed, for a single assembly, to query the versions that existed in the GAC on many servers. While far from a complete reporting application, this snippet served my purposes nicely:

    private static void QueryServerGAC(string IP)
    {
        string rootPath = String.Format(@"\\{0}\C$\WINDOWS\Assembly", IP);
        DirectoryInfo root = new DirectoryInfo(rootPath);
    
        foreach (DirectoryInfo gacDir in root.GetDirectories("GAC*")) // GAC, GAC_32, GAC_MSIL
        {
            foreach (DirectoryInfo assemDir in gacDir.GetDirectories("MyAssemblyName"))
            {
                foreach (DirectoryInfo versionDir in assemDir.GetDirectories())
                {
                    string assemVersion = versionDir.Name.Substring(0, versionDir.Name.IndexOf('_'));
                    foreach (FileInfo fi in versionDir.GetFiles("*.dll"))
                    {
                        FileVersionInfo vi = FileVersionInfo.GetVersionInfo(fi.FullName);
                        Console.WriteLine("{0}\t{1}\t{2}\t{3}", IP, fi.Name, assemVersion, vi.FileVersion);
                    }
                }
            }
        }
    }
    

    This can be called once for each server IP of interest, and prints the IP, DLL Name, Assembly Version, and FileVersion to the console.

    Feel free to take this code and modify for your own purposes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know a good tool that would give me x86 instruction execution count.
Does anyone know any good tool that I can use to perform stress tests
Does anyone know a good tool that can be run on a page (for
Does anyone know of a tool that can be used to compare (relatively complex)
Does anyone know of a tool that I can use to find explicit C-style
Does anyone know of a reasonably priced tool that will create DDL statements to
Does anyone know of a good tool or plugin that enables Microsoft Word or
Does anyone know of a Windows tool that will write the output from a
Does anyone know if there is sort of an open-source Prezi tool that works
Does anyone know if there is a tool or app that lets one capture

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.