Skip to content

[BUG] Starting Session as Standard user on Windows with Experimental Feature for Command tab completion stops PSReadline loading #8770

Closed

Description

@kilasuit

Steps to reproduce

Open PowerShell Core (as non-admin session) as per details in this PR #8109 with adding the -settingsfile ./test.json to the executable path (on Windows) so becomes "C:\Program Files\PowerShell\6-preview\pwsh.exe" -WorkingDirectory ~ -settingsfile "C:\Program Files\PowerShell\6-preview\test.json"

Expected behavior

Loads with no error (tab completion of d-na expands to Disable-NetAdapter)

Actual behavior

Loads but complains with 
Cannot load PSReadline module.  Console is running without PSReadline.

Tab Completion of d-na does complete to Disable-NetAdapter
PSReadLine cannot be added to session and execution Policy is set to restricted and I have to set the scope to Bypass to load PSReadline after which I can use d-na tab completion and PSReadline

image

Environment data


Name                           Value
----                           -----
PSVersion                      6.2.0-preview.4
PSEdition                      Core
GitCommitId                    6.2.0-preview.4
OS                             Microsoft Windows 10.0.17763 
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    Issue-Bug
    on Jan 28, 2019
  2. changed the title [-][BUG] Starting Session with Experimental Feature for Command tab completion stops PSReadline loading[/-] [+][BUG] Starting Session as Standard user on Windows with Experimental Feature for Command tab completion stops PSReadline loading[/+] on Jan 28, 2019
  3. kilasuit commented on Jan 28, 2019

    @kilasuit
    CollaboratorAuthor

    This seems to be fixed for a standard user session as long as you run both of these commands in an admin shell before the next run of Pwsh

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
    
  4. kilasuit commented on Jun 27, 2023

    @kilasuit
    CollaboratorAuthor

    No longer an 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-BugResolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions