Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install window update remotely using powershell #1

Open
prashant18tech opened this issue Jun 27, 2020 · 0 comments
Open

Unable to install window update remotely using powershell #1

prashant18tech opened this issue Jun 27, 2020 · 0 comments

Comments

@prashant18tech
Copy link

prashant18tech commented Jun 27, 2020

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
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant