I think it’s great that users can restart their Cloud PC from the Windows 365 web interface. It makes sense to bring self-service options to the users. But recently, a customer told me he couldn’t restart his Cloud PC from Windows. First, I thought it was a general problem in the customer environment, but after some troubleshooting, it turns out this only applies to non-admin users, but in all the environments I have access to, this couldn’t be customer-specific issue.
When users are logged into their Cloud PC, non-admin users cannot see the Restart button in the power menu. Therefore they can only restart their Cloud PC from the Windows 365 web interface. I don’t think this is an issue if users only use the Windows 365 web interface. However, I see a “user experience” problem if they use the Remote Desktop Client instead.
I knew Microsoft was doing some work behind the scene when a Cloud PC is being created, but I was unsure if they were doing something about the restart button. When looking at the documentation they are only hiding the shut down button. So I checked if they accidentally were hiding the restart button for non-admins. But it turned out that was not the case.
From here, I have been many places in the registry, also places I don’t think humans ever should be, but it didn’t resolve the issue. After a while, I had to reset my mind and start over. So I started to look at the User Rights Assignment in Local Security Policy, and this is where I found the policy called shut down the system.
When looking at the description(Explain) of the policy, there is nothing about restart action, but it allows users in this policy to shut down the system. So at first, I didn’t think it was related to the issue because it only controlled the ability to shut down, but I found out when adding Users to the policy, I was now able to restart from Windows. The shut down button was still not visible because of the registry key HideShutDown, but this is okay as the users should not turn off their Cloud PC.
When looking at a physical Windows PC, Users are added to the policy by default. So I think this is the root cause of why the non-admin users cannot restart their cloud PC from Windows.
Fixing the issue with a script
Looking at how to automatically add Users to the policy from Intune, I have come up with a quick and dirty solution. Thanks to Ian Xue for posting an answer to a similar request in this forum.
I have taken the Powershell lines and modified them into what I needed for this.
Afterward, I uploaded it as a script to Intune, and non-admin users can now restart from Windows.
If this were a “permanent fix,” I would add a bunch more to the script, such as logging. But as I hope this is only a temporary thing, I try to keep it as simple as possible.
I’m not sure if it’s by design non-admin users only should be able to restart from the Windows 365 web interface. But from a user perspective, it’s odd if they can restart one place but not another. If anyone knows a better solution for this issue, please shout it out.
I’m aware that non-admin users now can turn off their Cloud PC if they know how to start CMD and type shutdown /s but local administrators can do this as well, and no one regarding their permissions should perform this action on a Cloud PC. If the user turns off their Cloud PC, they can start it again by selecting the Restart in Windows 365 web interface.
Let’s hope Microsoft will fix this in the future, so a workaround isn’t necessary.