Forum Discussion
Windows 11 assigned access - setting kiosk mode over powershell and WMI
The path will almost certainly exist. I run Windows 10 22H2 and even I see it:
Running the commands under an administrative process does allow you to get past the "access denied" issue (confirmed by the default permissions on this namespace as shown below), but if the authenticated user is being used by the MDM client, that would explain why the article requires the various commands to execute within the system process rather than just any administrative user:
But because I don't use InTune and therefore have no policy data to query, I can't go any further with this. That said, I can see other class information such as that from the MDM_DevDetail example below:
It doesn't seem like this is actually a PowerShell issue, but rather the specific requirements of the MDM - as dretzer pointed out.
Cheers,
Lain
thank you both very much, that explains a lot, I have to use psexec to get this to work and run the script in system context. Ill try that out, nice.