{"id":13591050,"url":"https://github.com/microsoft/vssetup.powershell","last_synced_at":"2025-05-16T15:06:24.695Z","repository":{"id":37736227,"uuid":"78918719","full_name":"microsoft/vssetup.powershell","owner":"microsoft","description":"PowerShell module to interact with Visual Studio Setup","archived":false,"fork":false,"pushed_at":"2025-01-29T03:15:17.000Z","size":264,"stargazers_count":241,"open_issues_count":0,"forks_count":43,"subscribers_count":20,"default_branch":"develop","last_synced_at":"2025-04-12T14:17:58.855Z","etag":null,"topics":["powershell","visual-studio"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-14T06:01:56.000Z","updated_at":"2025-04-04T02:05:28.000Z","dependencies_parsed_at":"2024-05-01T23:56:18.987Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/vssetup.powershell","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvssetup.powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvssetup.powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvssetup.powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvssetup.powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/vssetup.powershell/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578875,"owners_count":21127714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","visual-studio"],"created_at":"2024-08-01T16:00:53.103Z","updated_at":"2025-04-12T14:18:04.923Z","avatar_url":"https://github.com/microsoft.png","language":"C#","funding_links":[],"categories":["C#","C\\#"],"sub_categories":[],"readme":"Visual Studio Setup PowerShell Module\n=====================================\n\n![build status: master](https://devdiv.visualstudio.com/DevDiv/_apis/build/status/Setup/Setup-VSSetup.PowerShell-CI?branchName=master\u0026label=master)\n![build status: develop](https://devdiv.visualstudio.com/DevDiv/_apis/build/status/Setup/Setup-VSSetup.PowerShell-CI?branchName=develop\u0026label=develop)\n[![github release](https://img.shields.io/github/release/Microsoft/VSSetup.PowerShell.svg?logo=github\u0026logoColor=white)](https://github.com/Microsoft/VSSetup.PowerShell/releases/latest)\n[![github releases: all](https://img.shields.io/github/downloads/Microsoft/VSSetup.PowerShell/total.svg?logo=github\u0026logoColor=white\u0026label=github)](https://github.com/Microsoft/VSSetup.PowerShell/releases)\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/VSSetup.svg?logo=powershell\u0026logoColor=white\u0026label=gallery)](https://powershellgallery.com/packages/VSSetup)\n\nThis PowerShell module contains cmdlets to query instances of Visual Studio 2017 and newer. It also serves as a more useful sample of using the Setup Configuration APIs than the previously [published samples][samples] though those also have samples using VB and VC++.\n\n## Installing\n\nWith Windows Management Framework 5.0 or newer (which installs PowerShell and comes with Windows 10), or [PowerShellGet][psget] for PowerShell 3.0 or 4.0, you can download and install this module easily.\n\n```powershell\nInstall-Module VSSetup -Scope CurrentUser\n```\n\nTo install for all users, pass `AllUsers` instead of `CurrentUser`, or just leave the `-Scope` parameter out of the command entirely.\n\nYou can also download the ZIP package from the [Releases][releases] page on this project site and extract to a directory named _VSSetup_ under a directory in your `$env:PSMODULEPATH`.\n\n```powershell\nExpand-Archive VSSetup.zip \"$([Environment]::GetFolderPath(\"MyDocuments\"))\\WindowsPowerShell\\Modules\\VSSetup\"\n```\n\n## Using\n\nYou can query all usable instances of Visual Studio and other products installed by the Visual Studio installer.\n\n```powershell\nGet-VSSetupInstance\n```\n\nTo get the instance for a specific installation directory, you can run the following.\n\n```powershell\nGet-VSSetupInstance 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community'\n```\n\nIf you want to select the latest instance that contains the .NET desktop development workload, you can pipe all instances - usable or not - to `Select-VSSetupInstance` that provides more fine grain control over which instances you enumerate.\n\n```powershell\nGet-VSSetupInstance -All | Select-VSSetupInstance -Require 'Microsoft.VisualStudio.Workload.ManagedDesktop' -Latest\n```\n\n## Feedback\n\nTo file issues or suggestions, please use the [Issues][issues] page for this project on GitHub.\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE.txt).\n\n## Code of Conduct\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n  [issues]: https://github.com/Microsoft/vssetup.powershell/issues\n  [psget]: http://go.microsoft.com/fwlink/?LinkID=746217\n  [releases]: https://github.com/Microsoft/vssetup.powershell/releases\n  [samples]: https://aka.ms/setup/configuration/samples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fvssetup.powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fvssetup.powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fvssetup.powershell/lists"}