# Copilot help - Update PnP Powershell

- Author: Thomy Gölles
- Published: 2024-12-10
- Language: en
- URL: https://thomygoelles.com/copilot-help-update-pnp-powershell/
- Topics: Generative AI, SharePoint

> How to update PnP PowerShell with Copilot's help

<i>How to update PnP PowerShell with Copilot's help</i>

Yes, I'm lazy and I'm not using PowerShell every single day.
Today I needed to update my PnP PowerShell module, and I thought I'd use Copilot to help me with that. Here's how it went:

Let's start with the initial prompt:
![Initial prompt](https://thomygoelles.com/img/2024/12/copilot-pnp-update01.webp#center)

Ok. That worked fine, but of course there is something else. I don't know how, but I always end up having multiple versions of the PnP PowerShell module installed. So I asked Copilot to help me with that as well:

![Multiple versions](https://thomygoelles.com/img/2024/12/copilot-pnp-update02.webp#center)

Well, that is not what I wanted. If we follow this path, we would end up with having not a single version of the PnP PowerShell module installed. Yes, we could do that and then install the latest version, but that's not what I want. I want to keep the latest version and remove all the others. So I asked Copilot to help me with that as well:

![Remove all but the latest version](https://thomygoelles.com/img/2024/12/copilot-pnp-update03.webp#center)

That's better. Now I can remove all the other versions and keep the latest one. Thanks, Copilot!

Is this a revolution in our work? No, it's not. But it's a nice way to get some help and it shows the difference between getting things done with Copilot or AI in general compared to what we all used to do: google it, read some blog posts, try some things out, and then maybe get it done.
