Skip to content

Unable to install window update remotely using powershell #1

@prashant18tech

Description

@prashant18tech

I have run the command and getting the error message .

Command:

$Inputscript = "C:\Powershell\27-06-20_PowerShell\demo3.ps1"

Invoke-AzureRmVMRunCommand -ResourceGroupName $ResourceGroupName -Name $Name -CommandId 'RunPowerShellScript' -ScriptPath $Inputscript -Confirm:$false

Error Message:

Message : Install-PackageProvider : The term 'Install-PackageProvider' is not recognized
as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is
correct and try again.
At C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows\1.1.5\Downloads\s
cript6.ps1:2 char:1

  • Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
  •   + CategoryInfo          : ObjectNotFound: (Install-PackageProvider:String) 
      [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions