Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback on Enable-PSRemoting #11682

Open
jhoneill opened this issue Jan 17, 2025 · 2 comments
Open

Feedback on Enable-PSRemoting #11682

jhoneill opened this issue Jan 17, 2025 · 2 comments
Labels
needs-triage Waiting - Needs triage

Comments

@jhoneill
Copy link

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 jhoneill added the needs-triage Waiting - Needs triage label Jan 17, 2025
@sdwheeler
Copy link
Contributor

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

@jhoneill
Copy link
Author

PowerShell/PowerShell#18741

and

PowerShell/PowerShell#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Waiting - Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants