Share via

Import the .nupkg file

Boopathi S 3,951 Reputation points
2024-05-06T15:28:43.7033333+00:00

Hello,

How can i import the .nupkg file to powershell? Please help

User's image

Windows for business | Windows Server | User experience | PowerShell

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-05-07T01:54:36.5033333+00:00

    Hi Boopathi Subramaniam,

    It's a PowerShell script, not a module. You can extract the NuGet package and use the ps1 script file directly.

    https://learn.microsoft.com/en-us/powershell/gallery/how-to/working-with-packages/manual-download?view=powershellget-3.x#installing-powershell-scripts-from-a-nuget-package

    Or you can install the script by running

    Install-Script -Name Get-WindowsAutoPilotInfo
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Was this answer helpful?

    0 comments No comments

  2. Andreas Baumgarten 132K Reputation points MVP Volunteer Moderator
    2024-05-06T15:39:05.3866667+00:00

    Hi @Boopathi Subramaniam ,

    to install/import a *.nupkg package you can use this:

    Install-Package -Name <path-to-the-package>\package.nupkg -Force
    
    

    To install the Nuget package provider in PowerShell if not already exist run:

    Install-PackageProvider -Name NuGet -Force
    
    

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.