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

Failed to install script on Windows Server 2016 Datacenter Azure VM #59

Open
rajaschava opened this issue Oct 17, 2019 · 0 comments
Open

Comments

@rajaschava
Copy link

When I run the command to install the script, I am receiving the following error.

Install-Script -Name New-OnPremiseHybridWorker

PackageManagement\Install-Package : Script 'C:\Users\R-Cc\AppData\Local\Temp\77671\New-OnPremiseHybridWorker\New-OnPremiseHybridWorker.ps1' is missing required metadata properties. Verify that the script file has Version, Guid, Description and 
Author properties. You can use the Update-ScriptFileInfo or New-ScriptFileInfo cmdlet to add or update the PSScriptInfo to the script file.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:3500 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (C:\Users\R-Cc...ybridWorker.ps1:String) [Install-Package], Exception
    + FullyQualifiedErrorId : MissingRequiredPSScriptInfoProperties,Test-ScriptFileInfo,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

I was able to install it on Windows10 workstation and noticed that the script file has all the parameters mentioned above except 'Description'.

One interesting log I found is

VERBOSE: Hash for package 'New-OnPremiseHybridWorker' does not match hash provided from the server.

Did anyone else face this issue?

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