none
PowerShell - ComboBox IF RRS feed

  • Question

  • I need to execute a command when selecting a certain comboBox value, I'm trying with the code, but it's not working

    $buttonRUN_Click =
    if ($comboBoxAtributo.SelectedItem -eq "Title") {
        Set-aduser -Identity $textBoxInsertLogin.text -Title $textBoxInsertValue.Text
    }

    Can you help me please?

    jeudi 2 juillet 2020 01:38

Toutes les réponses

  • Sorry but there is not enough information to guess at the issue.

    Have you tried to run this in the debugger to check if the code actually runs?


    \_(ツ)_/

    jeudi 2 juillet 2020 01:46
    Modérateur
  • Hi,
    As this thread has been quiet for a while, so here is a quick question.Was your issue resolved? 
    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
    If no, please reply and tell us the current situation in order to provide further help.
    Best Regards,
    Yang Yang

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    mardi 14 juillet 2020 01:55