Skip to content

desktop/scripts/inspect-vs-copilot.ps1

Comment 1, line 1

desktop/scripts/inspect-vs-copilot.ps1:1

<#
.SYNOPSIS
Read-only inventory of Visual Studio instances, Copilot components and local files.
.DESCRIPTION
Uses the official Setup Configuration client (vswhere), across all products and
prerelease instances. Reads assembly metadata and file counts only; never reads
chat bodies, credentials or account reports. Does not install or configure VS.
Finding an exporter type does not establish that it emitted usage.
#>

Comment 2, line 45

desktop/scripts/inspect-vs-copilot.ps1:45

# This is Microsoft's documented Installer tool location, not a VS IDE

Comment 3, line 46

desktop/scripts/inspect-vs-copilot.ps1:46

# installation path. IDE paths come exclusively from vswhere's results.

Comment 4, line 57

desktop/scripts/inspect-vs-copilot.ps1:57

# Do not use -latest, a year range, or a Community-only product selector.

Comment 5, line 104

desktop/scripts/inspect-vs-copilot.ps1:104

# The current runtime result is authoritative for this process. VS may have

Comment 6, line 105

desktop/scripts/inspect-vs-copilot.ps1:105

# inherited a different environment; keep user defaults and both variables as

Comment 7, line 106

desktop/scripts/inspect-vs-copilot.ps1:106

# separate candidates and report only directories that can be inspected.