Skip to content
Easy way to Disable GitHub Copilot in Visual Studio using Intune

Easy way to Disable GitHub Copilot in Visual Studio using Intune

Written By Vaishnav K
Last Updated June 3, 2025
Posted In Intune
SHARE

In this article, I am going to explain how to Disable GitHub Copilot in Visual Studio using Microsoft Intune. To disable GitHub Copilot in Visual Studio, you can start by opening Visual Studio and navigating to Tools > Options. In the left-hand menu, scroll down to find GitHub Copilot.

From there, uncheck or disable the option that enables Copilot suggestions. This turns off Copilot for the current user in that Visual Studio instance. If you’re managing multiple devices, you can disable GitHub Copilot across your organization using tools like Group Policy or Microsoft Intune.

For Group Policy, specific extension settings or registry keys can be applied to block the Copilot extension from running in Visual Studio. This ensures consistent behavior across all machines. In enterprise environments, central management is preferred to maintain compliance and control over development tools.

Disabling GitHub Copilot in Visual Studio helps ensure that AI-generated code suggestions are not introduced into sensitive projects, aligning with company security or privacy policies. Here am opting Intune’s Settings Catalog to configure the same.

Patch My PC
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 1
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 1

Why to Disable GitHub Copilot in Visual Studio

Here is a more detailed explanation of each key reason to disable GitHub Copilot in Visual Studio, elaborating on the points outlined in the table.

ReasonExplanation
Data Privacy ConcernsCopilot sends code snippets to the cloud, which may expose sensitive or proprietary data.
Compliance RisksGenerated code may unknowingly include copyrighted or non-compliant open-source code.
Security IssuesAI-generated code might introduce vulnerabilities that developers overlook.
Code Ownership ClarityThere may be uncertainty around who owns the AI-suggested code, leading to legal concerns.
Encourages DependencyDevelopers might rely too much on Copilot instead of understanding or writing their own code.
Quality ControlAI suggestions may not meet internal coding standards or best practices.
Licensing RestrictionsSome organizations may have licensing policies that prohibit the use of AI-generated code.
Audit and TraceabilityHarder to track the origin of code, making audits and reviews more difficult.
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Table. 1

Create a Configuration Policy to Disable GitHub Copilot in Visual Studio in Intune

Follow these steps to enable the Startup Boost in Edge Browser Policy using Microsoft Intune. First, sign in to the Microsoft Intune Admin Center with your administrator credentials.

  • Navigate to Devices  Windows > Manage devices > Configuration
  • Click on +Create +New Policy
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 2
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 2

Next, we will create a new configuration profile from scratch. First, we need to provide the options mentioned below. The below window give more details.

  • Platform: Windows 10 and later
  • Profile type: Settings catalog
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 3
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 3

On the Basics details pane, we can name the configuration policy as “Disable GitHub Copilot in Visual Studio” if needed, briefly describe the policy’s use, here I am giving as “It will prevent your users from using any GitHub Copilot license”, and click Next.

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 4
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 4

We can now add the required settings to the Configuration Settings pane. To do that, click +Add settings in the bottom left corner of the page.

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 5
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 5

Search “Copilot” as a keyword. This will help us to find the correct policy based on your current needs. Now you can see the browse by category found as Visual Studio Copilot Settings. Click that and check the “Disable Copilot” and close the Settings picker window.

NOTE! If this setting is enabled, it will prevent your users from using any GitHub Copilot license (GitHub Copilot for Business, GitHub Copilot for Enterprise, and Copilot for Individual). For more information, see: https://aka.ms/CopilotGroupPolicy.

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 6
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 6

On the current Microsoft Visual Studio Copilot Setting page, Disable Copilot should be set to Enabled and then click Next.

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 7
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 7

On the next page, leave the Scope tags as Default. If your tenant has custom scope tags, you can select them based on your policy needs, then click on Next

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 8
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 8

Here, I am assigning the configuration policy to the “HTMD – Test Computers” device group. To do this, click on “Add Groups” and select the desired device group under the “Included Groups” option. In this example, I am not using any filters, and the “Excluded Groups” option has been left blank.

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 9
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 9

On the Review + Create page, carefully review all the settings you’ve defined for the Disable GitHub Copilot in Visual Studio policy. Once you’ve confirmed everything is correct, select “Create” to deploy the policy.

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 10
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 10

Monitor the Disable GitHub Copilot in Visual Studio Policy Deployment

The configuration policy has been deployed to the HTMD – Test Computers a Microsoft Entra ID Device group. Once the device is synced, the policy will take effect immediately. To monitor the policy deployment status from the Intune Portal, follow the steps below.

  • Navigate to Devices >  Windows > Configuration > Search for the “Disable GitHub Copilot in Visual Studio” configuration policy.
  • Under the Device and user check-in status, you can see the policy’s deployment status
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 11
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 11

End User Experience

We can now verify whether the “Disable GitHub Copilot in Visual Studio” policy is functioning correctly. Start by logging into the device affected by the policy. Next, we can check the status of the policy using the Intune Event Logs. To do this, open the Event Viewer on the device.

  • Navigate to Applications and Services Logs > Microsoft > Windows > Devicemanagement-Enterprise-Diagnostics-Provider – Admin

Filter the latest logs with Event ID 814 to to easily locate the successful log. The screenshot below shows that the policy was successfully applied to the system, and our policy has worked as expected!

Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 12
Easy way to Disable GitHub Copilot in Visual Studio using Intune. Fig. 12

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Vaishnav K has over 11 years of experience in SCCM, Device Management, and Automation Solutions. Writes and imparts knowledge about Microsoft Intune, Azure, PowerShell scripting, and automation. Check out my profile on LinkedIn.

Written by

Vaishnav K has over 12+ years of experience in SCCM, Modern Device Management, and Automation Solutions. He writes and imparts his knowledge about Microsoft Intune, Windows 365, Azure, PowerShell scripting and automations. LinkedIn Profile : https://www.linkedin.com/in/vaishnav-k-957b0589/

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read