You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -EnableNetworkAccess to 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-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
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
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
New-PSSession -EnableNetworkAccess
to the local machineGet-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 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
The text was updated successfully, but these errors were encountered: