I'm working on migrating users from one Entra ID tenant to another and need to perform system resets for them. Users don't have admin rights, so I've created two scripts: one to return to OOBE and another that performs the reset directly. The plan is to have these scripts run via the Company Portal after installation.
Here's my challenge: I want to prompt the user with an OK/Cancel message box to confirm the reset before it happens. Although I can determine which user session is active, I'm struggling to send this message box from the script and get their response. Any references or example codes that could help me out would be greatly appreciated!
1 Answer
You might want to try using 'ServiceUI' from MDT, it could help you send that message box to the user!

Also, consider using PSADT; it might work well for your needs too.