Giter Site home page Giter Site logo

storagegrid-powershell-module's People

Contributors

ffeldhaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

storagegrid-powershell-module's Issues

The Web requests don't work when Internet Explorer isn't installed.

The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again

I managed to kinda fix it by using the -UseBasicParsing on every Invoke-WebRequest

Alias like "Sort" or "Select" not working on mac os

Alias are not working on mac os. Running the cmdlet "Connect-SGWServer -Name $servername -Credential $credential -Insecure" produces the following error.

Sort : The term 'Sort' 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 /usr/local/microsoft/powershell/6.0.0-beta.2/Modules/StorageGRID-Webscale/4.0.1/StorageGRID-Webscale.psm1:159 char:59
+ ...    $APIVersion = (Get-SGWVersions -Uri "https://$Name" | Sort | selec ...

    + CategoryInfo          : ObjectNotFound: (Sort:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


This is a known issue, see: PowerShell/vscode-powershell#714
Replacing with the long form sort-object or select-object should fix the problem.

Version information:

Name                           Value                                                                                                                 
----                           -----                                                                                                                 
PSVersion                      6.0.0-beta                                                                                                            
PSEdition                      Core                                                                                                                  
BuildVersion                   3.0.0.0                                                                                                               
CLRVersion                                                                                                                                           
GitCommitId                    v6.0.0-beta.2                                                                                                         
OS                             Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64        
Platform                       Unix                                                                                                                  
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                               
PSRemotingProtocolVersion      2.3                                                                                                                   
SerializationVersion           1.1.0.1                                                                                                               
WSManStackVersion              3.0   

Unable to set User Option

When I try to add a new Group when connected as a Tenant via GUI I can create a Group with the "ManageOwnS3Credentials" Permission. When I try the same with Powershell (New-SgwGroup -DisplayName $Group -UniqueName $Group -Type local -S3Policy $policy -ManageOwnS3Credentials $true) I keep getting this Error: "Permissions for a tenant group specified, but connected as grid user. Only the following parameters are allowed for grid administration groups: RootAccess,
OtherGridConfiguration, GridTopologyPageConfiguration, TenantAccounts, ChangeTenantRootPassword, Maintenance, MetricsQuery, ActivateFeatures, Ilm"

Connect-SGWServer return with error

I need help with this. a totall newbie with PS.

PS C:\Users\khoosc> Connect-SGWServer -Name $Server -Credential $Credential -SkipCertificateCheck
Method invocation failed because [Microsoft.PowerShell.Commands.WebRequestSession] does not contain a method named
'new'.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\StorageGRID-Webscale\StorageGRID-Webscale.psm1:1031 char:9
+         $Server = [PSCustomObject]@{SkipCertificateCheck=$SkipCertificateCheck.I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound


WARNING: Certificate of the server may not be trusted. Use -SkipCertificateCheck switch if you want to skip certificate
 verification.
Get-SgwVersion : GET to /versions failed with Exception Invalid URI: The hostname could not be parsed.

At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\StorageGRID-Webscale\StorageGRID-Webscale.psm1:1074 char:24
+         $APIVersion = (Get-SgwVersion -Server $Server -ErrorAction Stop | Sort-O ...
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-SgwVersion

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.