โ01-18-2024 02:08 PM
Hello All
Just hoping someone may be able to help on this script I'm running. Ive got a script to run an MSI installer and I am trying to add the before the MSI runs, Ive tested the lines below and it works in my test environment but when loading into 'Commands' in JumpCloud the entire script fails to run.
Any ideas where I may be going wrong?
Thanks!
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show('Click Yes to proceed with Installation', 'Confirmation', 'YesNo');
โ01-24-2024 05:46 AM - edited โ01-24-2024 05:52 AM
hi, I don't have a clear background info so idk if this reply fits to your question please elaborate. Anyways I think we have a similar problem. i also use "[System.Windows.MessageBox]" it works on local machine but every time i run this in jumpcloud nothing shows.
now i change it to " (New-Object -ComObject WScript.Shell).Popup " intead of using system.windows.MessageBox
here is the code for prompt msg:
hope it helps
โ01-24-2024 06:22 AM
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.