locked
PowerShell Loop - How to stop iterating upon match RRS feed

  • Question

  • Hi All, 

    I am writing a script to update BIOS on HP client computers. I have a series of folders labeled with various HP mpdels (HP ProBook 450 G3, HP Probook G4, etc).

    In my script i initialize a variable $model. I checks the folder names against the value contained in model. However, I do not know how to handle a situation where there is no match. Ideally I would like to generate a console message the the BIOS was not found for that model.

    Wednesday, September 6, 2017 4:21 AM

All replies