Forum Discussion

SIDFVAN's avatar
SIDFVAN
Copper Contributor
Jun 22, 2023

WAC giving : Couldn't get the PowerShell language mode of this computer

I am doing a POC on Windows Admin Center.
I have installed the RBAC feature and Active directory feature.

I have added a user in the local group "Windows Admin Center Administrators"
When I connect through the gateway to this server I get following error:
"Couldn't get the PowerShell language mode of this computer."

and all other PS calls fail

When I make the user local admin there are no errors

 

Server : 2022 

Browser : edge

 

in the eventlog of the server I see :

Error occurred whilst checking the PS Language mode of machine xxxxxxx. Continuing regular WAC flow as a fail-safe default.

 

Then follows several access denied messages

 

  • SIDFVAN's avatar
    SIDFVAN
    Copper Contributor

    I have the same error when the usre is in the local Reader group

     

  • Hi SIDFVAN,

     

    It appears that the issue might be related to insufficient permissions that the user in the local group "Windows Admin Center Administrators" has. Even though the user is part of the local group, they may not have the necessary permissions to perform certain operations that require elevated privileges, such as accessing PowerShell on the remote server.

     

    You need to confirm that the user in question has the necessary permissions within Active Directory and the role-based access control (RBAC) settings in Windows Admin Center. Secondly, check the PowerShell execution policy and Group Policy settings to ensure they don't restrict the user's access (Get-ExecutionPolicy). Lastly, attempt a manual execution of a PowerShell command on the remote server to investigate if the issue is specific to Windows Admin Center or a broader problem with PowerShell remoting.

     

    Hope this helps!

Resources