PowerShell-Docs icon indicating copy to clipboard operation
PowerShell-Docs copied to clipboard

Feedback on Enable-PSRemoting

Open jhoneill opened this issue 11 months ago • 5 comments

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

jhoneill avatar Jan 17 '25 00:01 jhoneill

@jhoneill Is there an issue open for this in the source repo?

sdwheeler avatar Jan 17 '25 13:01 sdwheeler

  • https://github.com/PowerShell/PowerShell/issues/18741

and

  • https://github.com/PowerShell/PowerShell/issues/20180

The fix is to get the permissions on the file to match the permissions on the remoting configuration but since that doesn't seem to be happening, documenting around it seems like the best move

jhoneill avatar Jan 17 '25 17:01 jhoneill

We had an internal meeting about this problem. We are discussing what needs to be done to fix this. We will adjust the documentation once we have a decision.

sdwheeler avatar Jan 22 '25 20:01 sdwheeler

We had an internal meeting about this problem. We are discussing what needs to be done to fix this. We will adjust the documentation once we have a decision.

I'm happy to help if you'd like. Just toss me the details!

ehmiiz avatar Feb 13 '25 18:02 ehmiiz

Linking another related issue - https://github.com/PowerShell/PowerShell/issues/14274

sdwheeler avatar Feb 24 '25 20:02 sdwheeler