I'm developing a Powershell script for Java deployment via LDMS. I'm almost there but want to display a popup dialogue at the very end that forces the user to "click ok" to restart the machine.
The script works (as the local System Account) but when I try to deploy it with LDMS I get the dreaded Interactive Services Detection message shown below:
If I click on 'View the message' I see my popup and can click OK and the machine will restart.
However, I don't want to have the ISD message as it will just confuse people. I have tried stopping and disabling the UI0Detect service but then I see nothing, no popup message.
Should stopping and disabling this service still display my popup message (without the ISD warning) or is this working as designed?
What's the recommended method of display interactive messages in Powershell apps being deployed by LDMS as the local System Account?