-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Unable to open to PowerShell.7 session configuration without Admin #18741
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
Comments
FWIW, I have posted a question on StackOverflow about this (and recently added a bounty). |
I have a similar issue where some commands run fine but some cmdlets won't work, like Running PowerShell 7.3.0 configuration. Is @SteveL-MSFT aware of this? |
Turns out I needed to add write permissions to Would be great to give the "Remote Management Group" write permissions on this folder as part of |
I gave Modify permissions to the "Remote Management Users" group on that folder and still get my error. In my case the user the session is running as is also a member of the Administrators group. |
Re-opening. Adding |
Did you manage to resolve this issue @OneScripter? Experiencing the same exact problem. |
I ended up downgrading everything to 7.2.8 for now. Hoping this gets fixed soon though. |
Turns out that reverting to 7.2.8 fixed the cmdlet launch issues, but I was still getting Adding Modify permissions per @ibebbs comment resolved it and now I can launch any PowerShell 7 version. Any idea why it would need Modify versus just Read on that folder? All that said, I eagerly await a fix from @SteveL-MSFT and team as this is a huge issue for some of us. |
In our company, we rely on the workaround suggested, i.e. to use a version |
Curious why this was tagged no action, by the bot, closed, then untagged but not reopened As of 7.4.6 this problem remains : the config.txt needs write access, but there is no synchronization between the permissions on the configuration and the permissions on the file.
So for the default connection everything works if I add interactive and Remote management users with full control to the file, or if logon as admin but not (for example) with |
Prerequisites
Steps to reproduce
Administrators
groupwinget install --id Microsoft.Powershell --source winget
)Enable-PSRemoting
to create PSSession Configurations (i.e. "PowerShell.7")Invoke-Command -VMName $vmName -Credential $creds -ConfigurationName PowerShell.7 -ScriptBlock { $PSVersionTable }
Administrators
group and add them to theRemote Management Users
group.Invoke-Command -VMName $vmName -Credential $creds -ConfigurationName PowerShell.7 -ScriptBlock { $PSVersionTable }
Set-PSSessionConfiguration -Name PowerShell.7 -ShowSecurityDescriptorUI
Invoke-Command -VMName $vmName -Credential $creds -ConfigurationName PowerShell.7 -ScriptBlock { $PSVersionTable }
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: