Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 1 day old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I trying to learn how to use the Job tracker function, till now what I did is to create the job, also was able to add arguments into it, but i'm not sure how to update it.
The below script it suppose to do an AD search, and update a combobox with users name, it partially works, sometimes it update it and sometimes it gets stuck, and I think it is case I don't stop the job or update it, so i went to the example that it is posted in responsive form page, tried to replicate it but did not work, could you please help me with it?
It is working but with some error that i have to check.
One last question, if you see I only do the task if the word written on the text box is greater than 2, do this, do I have to create a stop job each time that we write a letter? For example:
$textbox = "jho" , here it supposes to bring me the first 6 users that contain "jho" on it, but when I add the next letter, "jhon", the result is $null and the combobox is not updated
#
ERROR: Update-ComboBox : Cannot validate argument on parameter 'Items'. The argument is null. Provide a valid value for the argument, and then try running the
ERROR: command again.
AD Tool V 1.0.psf (203, 27): ERROR: At Line: 203 char: 27
ERROR: + Update-Combobox -Items $Users.SamAccountName -ComboBo ...
#
thanks, I'll try to find another way to make it responsive, I was trying to populate a variable at the start of the form with users but get-aduser -filter * -properties SamAccountName takes to long and the variable is always empty till it finishes.
This topic is 5 years and 1 day old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.