Forum Discussion
Windows 11 assigned access - setting kiosk mode over powershell and WMI
Hi.
I stepped away from this thread as it has nothing to do with PowerShell and everything to do with the XML file, which is a Windows/InTune topic (I know nothing about InTune, as I've mentioned above a few times).
That said, if I were to take this further and try resolving the "generic error" errors, then my process would be to use the Windows Event Log - which I've discussed and included a screenshot from above - as it tells you precisely which section is at fault, along with which section it expects to see.
I'd wager that once I've fixed the listed section from the error, I'll roll into a new error for the next section, but after a few iterations, I'd expect to end up with a valid XML file at which point everything will work.
Noting the comment above from Micah about using http instead of https, while those values look like web addresses, they're not web addresses.
XML uses URI's as identifiers - again, they are not web addresses. There is no security issue here since there is no web traffic going to these identifiers and - as noted by Micah - if you change an identifier (such as the http prefix to https), the XML file may be rendered invalid.
Only use the values provided by Microsoft. Don't change http to https from mistakenly thinking these are web addresses being used in some kind of web query.
Cheers,
Lain
- LainRobertsonJan 18, 2024Silver Contributor
Fair enough.
If that log is indeed enabled (you can check by right-clicking on it) yet there's nothing in it, then I can't help, as that's the only log I found whilst working through things with Michael (the original author).
For me on Windows 10 22H2, it was enabled by default.
Perhaps you're facing a different issue to Michael - I have no idea. But given that Admin log works for me, for Michael's original scenario, I'd be letting the errors guide me into which corrections I needed to make to the XML.
Cheers,
Lain
- AnrDaemonJan 18, 2024Copper ContributorIf you mean Application and Services Logs/Microsoft/Windows/AssignedAccess/Admin - it's entirely empty. Literally zero records.
- LainRobertsonJan 18, 2024Silver Contributor
Hi.
If you scroll back up to the post I mentioned from the 17th August 2023, there's a full write-up including the screenshot I referred to.
Cheers,
Lain