Skip to content

Feedback on Enable-PSRemoting #11682

Open
@jhoneill

Description

@jhoneill

Type of issue

Missing information

Feedback

As it stands the examples will not correctly enable remoting.
Until the PowerShell team fixes the issue the help should also explain that

  1. After enabling it is possible to use New-PSSession -EnableNetworkAccess to the local machine
  2. This will only work logged on in an As Admin session and will fail using the same account in a non admin session.
  3. Although the permissions to the configuration include remote-admin users, if they are not in administrators this will fail
  4. To fix this First run Get-PSSessionConfiguration and note the permissions on PowerShell.7.x.y, then navigate to %windir%\system32\PowerShell\7.x.y and grant those users full control to RemotePowerShellConfig.txt

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7.4

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.4/Microsoft.PowerShell.Core/Enable-PSRemoting.md

Author

@sdwheeler

Document Id

9dd8106c-4ba5-ca83-805b-4541f47549ec

Metadata

Metadata

Assignees

No one assigned

    Labels

    review-shiproomWaiting - for Shiproom discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions