Skip to content

Why do we have *-ExecutionPolicy cmdlets on Linux? #7573

Closed

Description

Why do we have Get-ExecutionPolicy and Set-Executionpolicy on Linux when running Set-ExecutionPolicy returns:

Set-ExecutionPolicy : Operation is not supported on this platform.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.1.0-preview.4
PSEdition                      Core
GitCommitId                    6.1.0-preview.4
OS                             Linux 4.4.0-17134-
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    Issue-Question
    on Aug 22, 2018
  2. iSazonov commented on Aug 22, 2018

    @iSazonov
    Collaborator

    I belive #1998 will address the Issue.

  3. alexandair commented on Aug 22, 2018

    @alexandair
    ContributorAuthor

    Ilya (@iSazonov)
    Sure, that will address it.
    The only problem is that that issue is 2 years old (posted 3 days after PowerShell Core was announced) and nothing happened. 2 years.

  4. iSazonov commented on Aug 22, 2018

    @iSazonov
    Collaborator

    Because we hope to port all cmdlets :-) You can vote in #1998.

  5. alexandair commented on Aug 28, 2018

    @alexandair
    ContributorAuthor

    Ilya (@iSazonov)
    Why is this closed?
    Execution policy is not relevant on Linux right now, and everything connected to it should be removed.
    That would not be the first case when something is removed even there are plans to port it later.

    /cc Steve Lee (@SteveL-MSFT) Joey Aiello (@joeyaiello)

  6. iSazonov commented on Aug 28, 2018

    @iSazonov
    Collaborator

    Aleksandar Nikolić (@alexandair) The problem is not rejected - it is tracked in #1998. The solution is already known too. The only thing left to do is implement it.

    We have too many open issues. This complicates the re-search. We can lose something useful.
    If you are interested in solving this particular problem, then feel free to push PR - we will help you.

  7. alexandair commented on Aug 28, 2018

    @alexandair
    ContributorAuthor

    Let me put it differently.

    I don't really care if this issue is open or closed. But, I care that we have something exposed in Linux that is just not valid in the currently available versions, both stable and preview.
    If it's not relevant it should be removed.
    When the time and resources allow, it can be implemented. Having an issue posted more than two years ago to track it doesn't improve the user experience.

    Get-ExecutionPolicy, Set-ExecutionPolicy, and pwsh's -ExecutionPolicy should be removed from Linux releases.

  8. iSazonov commented on Aug 29, 2018

    @iSazonov
    Collaborator

    Aleksandar Nikolić (@alexandair) We all completely agree with this. Please move your comment in #1998 to increase a priority the issue.
    Also you can discuss the Issue on next monthly community call. Over the past year, we have done a lot of code and docs cleanups. The discussion can help us to prioritize further work.

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-QuestionResolution-Answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions