Zmagam się z PowerShellem z poziomu mojego ubuntu. PowerShell zainstalowany działa, ale potrzebuje doinstalować moduły np: WSMan'a
Po co mi to... ponieważ potrzebuje łączyć się z PS na innej maszynie z windowsem oraz wykonywać różne skrypty.
Kod: Zaznacz cały
PS /home/damian> install-module Microsoft.WSMan.Management PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Microsoft.WSMan.Management'. Try Get-PSRepository to see all available registered module repositories.
At /snap/powershell/19/opt/powershell/Modules/PowerShellGet/PSModule.psm1:9491 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PackageManagement\Install-Package : The member 'TypesToProcess' in the module manifest is not valid: Cannot find path '/tmp/348569926/Azure.Storage.4.6.1/.\Microsoft.WindowsAzure.Commands.Storage.Types.ps1xml' because it does not exist.. Verify that a valid value is specified for this field in the '/tmp/348569926/Azure.Storage.4.6.1/Azure.Storage.psd1' file. At /snap/powershell/19/opt/powershell/Modules/PowerShellGet/PSModule.psm1:9491 char:21 + ... $null = PackageManagement\Install-Package @PSBoundParameters + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (/tmp/348569926/...re.Storage.psd1:String) [Install-Package], Exception
+ FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS /home/damian> Install-Module Azure
PackageManagement\Install-Package : The member 'TypesToProcess' in the module manifest is not valid: Cannot find path '/tmp/1352462030/Azure.Storage.4.6.1/.\Microsoft.WindowsAzure.Commands.Storage.Types.ps1xml' because it does not exist.. Verify that a valid value is specified for this field in the '/tmp/1352462030/Azure.Storage.4.6.1/Azure.Storage.psd1' file. At /snap/powershell/19/opt/powershell/Modules/PowerShellGet/PSModule.psm1:9491 char:21 + ... $null = PackageManagement\Install-Package @PSBoundParameters + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (/tmp/1352462030...re.Storage.psd1:String) [Install-Package], Exception + FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS /home/damian>