I am using Powerstudio. Currently i have a button that loads a CSV into a datagridview, that i am able to pick/sort through a list of computers and send the one i want to another datagridview. This is the part i am stuck on, in the second Datgridview i would like to read the IP address in column 2 and shut those computer down and show the process in a Listbox next to it.
The number of IP in column 2 will change depending on who is using it. so i know i will have to use a Foreach.
thanks for the reply Dan. I am new to powershell as a whole and powerstudio, So spare with me. in Datagrideview2 i don’t want to have to click on any rows or columns. once the $button1 is click i would like it to automatically look in column2 where the ip’s will be and start shutting the system down one by one.
i figured out what you did in the other example and i like that way better, so i will go that route. The other problem i have, is i will be package the script when i am done so i have to push the output to one of the $richtextbox i have. so far this is what i have
I’m not a big fan of the richtextbox. I’d add another column to the datagridview and write the results there. Down the road you’ll probably get into doing the reboots using the job tracker framework, waiting for the server to come back up and then writing an uptime back to the cell.
thank you for the suggesting. i do like that idea better, to add another column and post the statue there. this is what i came up with but its not displaying as should.
need a little help with this one, I know I am overthinking it somewhere. I would like to add color to a cell depending on the outcome of the “if” statement.
Ex
if true (just that one cell will change color)
…green
else
…red