If (-not $useDefaultMsi) Issues

Hi All,

Below is a portion of powershell our company is using to deploy BIOS updates to our laptops. As shown below the system will download the most recent catalog (http://ftp.dell.com/catalog/CatalogPC.cab) check it and find the model of laptop and then download the appropriate bios from dell i.e. (ftp://downloads.dell.com/FOLDER05250255M/1/E7440A27.exe), and once the user initiates reboot the bios will update. However if I remove the comments systems will only download the catalogpc.cab file, it will not check to for model thus not download the xxxxx.exe. Any help or suggestions would be appreciated.

If (-not $useDefaultMsi) {
#Show-InstallationPrompt -Message ‘Please save your work and click OK to reboot’ -ButtonRightText ‘OK’ -Icon Information -NoWait
#Show-InstallationRestartPrompt -CountdownSeconds 3600

You are apparently using the ‘PowerShell AppDeployment Toolkit’, which is not something I have ever had need for in my environments or ones I manage.

Yet comments are just text, and should not have any impact on the process, but apparently they are for you.

Do, a quick test by using normal non-dialog type messages and see if you are more successful. It just appears to me, not seeing the rest of what you are doing, that popping dialog boxes in interrupting what you are doing.

Or separate the messages to a different code segment prior to actions you are taking, meaning outside of the if statement.