Feedback on Enable-PSRemoting
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
- After enabling it is possible to use
New-PSSession -EnableNetworkAccessto the local machine - This will only work logged on in an As Admin session and will fail using the same account in a non admin session.
- Although the permissions to the configuration include remote-admin users, if they are not in administrators this will fail
- To fix this First run
Get-PSSessionConfigurationand note the permissions on PowerShell.7.x.y, then navigate to %windir%\system32\PowerShell\7.x.y and grant those users full control toRemotePowerShellConfig.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 Is there an issue open for this in the source repo?
- 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
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.
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!
Linking another related issue - https://github.com/PowerShell/PowerShell/issues/14274