Skip to content

Several Cmdlets from Microsoft.PowerShell.Utility are missing #2123

Closed

Description

The following Function and Cmdlets are missing from Microsoft.PowerShell.Utility

Function        ConvertFrom-SddlString                             3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          ConvertFrom-String                                 3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Convert-String                                     3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          ConvertTo-Html                                     3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Export-PSSession                                   3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Import-PSSession                                   3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Out-GridView                                       3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Out-Printer                                        3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Send-MailMessage                                   3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Show-Command                                       3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Unblock-File                                       3.1.0.0    Microsoft.PowerShell.Utility
Cmdlet          Update-List                                        3.1.0.0    Microsoft.PowerShell.Utility

It would be great if at least the Convert-FromString, Convert-String, ConvertTo-Html, Send-MailMessage and Update-List Cmdlets get implemented. The Out-GridViewand Show-Command Cmdlets may be difficult due to graphical interface requirements, similar for Out-Printer with external printer requirement. A removal notice (ideally including explanation) should be added to the release notes for the other Cmdlets if they will be permanantly removed.

Activity

  1. vors commented on Aug 31, 2016

    @vors
    Collaborator

    Command availability table need to be updated.

  2. MaximoTrinidad commented on Sep 4, 2016

    @MaximoTrinidad

    I just coming up with these missing ones. But specially I was need the ConvertTo-Html cmdlet.

  3. Pax-nl commented on Sep 7, 2016

    @Pax-nl

    +1 on the missing ConvertTo-Html

  4. ed-ilyin commented on Sep 7, 2016

    @ed-ilyin

    Missing Send-MailMessage

  5. Pax-nl commented on Sep 7, 2016

    @Pax-nl

    This example from Technet to solve my issue with missing the ConvertTo-Html cmdlet does not work either.

    $URL = Read-Host "Enter URL to Decode" $Encode = [System.Web.HttpUtility]::UrlEncode($URL) Write-Host "This is the Encoded URL" $Encode -ForegroundColor Green

    `

    • $Encode = [System.Web.HttpUtility]::UrlEncode($URL)
    •         ~~~~~~~~~~~~~~~~~~~~~~~~
      
      • CategoryInfo : InvalidOperation: (System.Web.HttpUtility:TypeName) [], RuntimeException
      • FullyQualifiedErrorId : TypeNotFound`

    EDIT: found a working solution
    [uri]::EscapeDataString($SitePath)

  6. alanrenouf commented on Sep 8, 2016

    @alanrenouf

    +1 on the missing ConvertTo-Html

  7. westforkfab commented on Oct 6, 2016

    @westforkfab

    I successfully build the PS module in Ubuntu 16.04 as shown in https://github.com/PowerShell/PowerShell/blob/master/docs/building/linux.md

    I am doing some tests and I have this error:

    Unable to find type [System.Net.ServicePointManager].

    Also I can't find [System.Web].

  8. added
    Review - CommitteeThe PR/Issue needs a review from the PowerShell Committee
    and removed
    Review - CommitteeThe PR/Issue needs a review from the PowerShell Committee
    on Nov 1, 2016
  9. SteveL-MSFT commented on Nov 3, 2016

    @SteveL-MSFT
    Member

    @PowerShell/powershell-committee reviewed this, show-command, unblock-file, out-gridview, out-printer won't be in PowerShell Core. ConvertFrom-String and Convert-String is dependent on MSR. The other ones should be in PS Core.

  10. Liturgist commented on Nov 12, 2016

    @Liturgist

    Is there any documentation I could read to get a better understanding of the planned structure? Is there a definition of PowerShell Core? Are there other PowerShell ??? kits defined?

    Today I was looking for [System.Web.HttpUtility]::HtmlEncode(), but ended up using [uri]::EscapeDataString() mentioned in this issue. Not totally the same thing.

  11. pcgeek86 commented on Feb 7, 2017

    @pcgeek86

    Are there plans to implement Send-MailMessage? Maybe this should be broken out into separate issues for specific cmdlet implementations.

  12. added
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Feb 7, 2017
  13. 4 remaining items

  14. iSazonov commented on Nov 5, 2017

    @iSazonov
    Collaborator

    Nagy-Egri Máté Ferenc (@MathiasMagnus) We already have Unblock-File in PowerShell Core. Microsoft.PowerShell.Archive is not in the repo.
    Did you run startup tests on the latest version?

  15. iSazonov commented on Nov 5, 2017

    @iSazonov
    Collaborator
  16. MathiasMagnus commented on Nov 6, 2017

    @MathiasMagnus
    Contributor

    Well, it exists, it just doesn't work.

    PS C:\Users\Matty> Unblock-File $PROFILE
    Unblock-File : A rendszer nem találja a megadott fájlt
    At line:1 char:1
    + Unblock-File $PROFILE
    + ~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : PermissionDenied: (C:\Users\Matty\...ell_profile.ps1:String) [Unblock-File], Win32Except
       ion
        + FullyQualifiedErrorId : RemoveItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.UnblockFileCommand
    
    PS C:\Users\Matty> Test-Path $PROFILE
    True

    It throws an UnautorizedAccessError exception on my own profile, and any file I tested it with. How can my setup go wrong?

  17. SteveL-MSFT commented on Nov 6, 2017

    @SteveL-MSFT
    Member

    Nagy-Egri Máté Ferenc (@MathiasMagnus) working for me on beta.9 using win-x64.zip release:

    unblock-file .\PowerShell-6.0.0-beta.9-win-x86.zip

    However, if the file is not blocked, you will get that error message:

    #running second time
    PS C:\Users\slee\Downloads> unblock-file .\PowerShell-6.0.0-beta.9-win-x86.zip
    unblock-file : The system cannot find the file specified
    At line:1 char:1
    + unblock-file .\PowerShell-6.0.0-beta.9-win-x86.zip
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (C:\Users\slee\D...a.9-win-x86.zip:String) [Unblock-File], Win32Exception
    + FullyQualifiedErrorId : RemoveItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.UnblockFileCommand

    We should probably quietly succeed if that stream isn't available to remove. Created issue #5353

  18. MathiasMagnus commented on Nov 7, 2017

    @MathiasMagnus
    Contributor

    Steve Lee (@SteveL-MSFT) Thanks for looking into it, and thanks to Ilya (@iSazonov) for the fix. Not being a .NET developer (C++ and GPGPU) I very often feel dumb when I try to debug anything PS related. I just use it as an interactive shell (and very little scripting) as a replacement for bash, but with an actual type system (something I feel home at).

  19. iSazonov commented on Nov 7, 2017

    @iSazonov
    Collaborator

    Nagy-Egri Máté Ferenc (@MathiasMagnus) We welcome any feedback. Not only bugs but also the most hot features.

  20. SteveL-MSFT commented on Nov 7, 2017

    @SteveL-MSFT
    Member

    I'm prepping a PR to add Update-List the other cmdlets we don't have any plans to port

  21. christian-korneck commented on Dec 31, 2017

    @christian-korneck

    Just out of interest: What's the reason why Out-GridView won't be part of PS Core?

  22. rkeithhill commented on Dec 31, 2017

    @rkeithhill
    Collaborator

    The current implementation (in Windows PowerShell) uses WPF which isn't available on Linux or macOS.

  23. christian-korneck commented on Dec 31, 2017

    @christian-korneck

    Keith Hill (@rkeithhill) thanks for the explanation!

  24. iSazonov commented on Dec 31, 2017

    @iSazonov
    Collaborator

    We want and have plans to implement Out-GridView on another platform.

  25. MathiasMagnus commented on Dec 31, 2017

    @MathiasMagnus
    Contributor

    When did Test-Connection disappear and why? It was in RC1 I believe...

  26. iSazonov commented on Dec 31, 2017

    @iSazonov
    Collaborator

    Test-Connection was not ported (old Windows only code). Currently we have new ported version in #5328 but not jet merged.

  27. iSazonov commented on Sep 29, 2019

    @iSazonov
    Collaborator

    I updated current status in #2123 (comment)
    I believe we can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions