We have a piece of software that runs a powershell command at startup to match the username and match it with active directory.
This works perfect on server 2008R2 but does not on server 2012R2.
If I login with my test user on RDS2012 and try to open powershell I get access denied.
I cannot open powershell.exe in C:\windows\system32\powershell\V1.0\powershell.exe but I can open it in the SysWow64 folder.
For example, I want to run the command "[System.Environment]::Username" when logged in as a normal user.
Do I somehow have to give permission to powershell?