Search found 11276 matches

by jvierra
Fri Sep 22, 2017 12:28 pm
Forum: PowerShell GUIs
Topic: Label: howto set 1 letter in other color andfo
Replies: 2
Views: 93

Re: Label: howto set 1 letter in other color andfo

You can use the "Paint" event to create almost any graphic form you want including a multi-color label text. Here is a quick lesson on graphics and how to "paint" graphics using PowerShell: http://www.techotopia.com/index.php/Drawing_Graphics_using_PowerShell_1.0_and_GDI%2B With a control just grab ...
by jvierra
Fri Sep 22, 2017 3:43 am
Forum: Windows PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 75

Re: run a reg file remotely

Here is a module you can install that will do what you ask:

Run this command:
find-module PoshRegistry

To install run this command:
find-module PoshRegistry | Install-Module
by jvierra
Fri Sep 22, 2017 2:43 am
Forum: Windows PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 75

Re: run a reg file remotely

Look in the Gallery and you will find many examples that can do exactly that.
by jvierra
Fri Sep 22, 2017 2:26 am
Forum: Windows PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 75

Re: run a reg file remotely

Use the remote registry classes of Net. They can do it without remoting.

See examples in the TechNet Gallery: http://gallery.technet.microsoft.com
by jvierra
Thu Sep 21, 2017 9:35 am
Forum: PowerShell GUIs
Topic: Run job as a function?
Replies: 15
Views: 230

Re: Run job as a function?

I think bottomline is indeed I have to make the script wait for the end of the job. Though I don't know how to make it do that. The whole purpose of the JobTrakker is to no wait. THe "JobCompleted" script block is called when the job is complete. This is where the data is available if it has not be...
by jvierra
Thu Sep 21, 2017 9:32 am
Forum: PowerShell GUIs
Topic: Run job as a function?
Replies: 15
Views: 230

Re: Run job as a function?

Without the code you are using it is impossible to understand the question or propose an answer. You have to think this through and post a code example that is actually being used and an explatnation that we can understand.
by jvierra
Thu Sep 21, 2017 6:16 am
Forum: PowerShell GUIs
Topic: Run job as a function?
Replies: 15
Views: 230

Re: Run job as a function?

stevens wrote:
Thu Sep 21, 2017 12:37 am
... I copy pasted the commented code. I guessed you would have figured that.
What good is code that is commented out going to do. All of the code pasted is commented out so it will never run.
by jvierra
Thu Sep 21, 2017 5:56 am
Forum: PowerShell GUIs
Topic: Hide and disable single TreeView node
Replies: 6
Views: 160

Re: Hide and disable single TreeView node

Thanks jvierra, so you have a small example on how can I add the code to the form class Sorry but I do not have an example currently. Maybe I will create a simple example next weekend. You can start by build your customized control in Visual Studio. This will likely take you some time if you have n...
by jvierra
Wed Sep 20, 2017 4:28 pm
Forum: PowerShell GUIs
Topic: Help with the responsive form
Replies: 19
Views: 189

Re: Help with the responsive form

You will need to be sure the Update script runs for all jobs and that the progress steps are set correctly as well as the initial value. This will require using arithmetic and some serious design thinking to adapt the tracker to your requirements.
by jvierra
Wed Sep 20, 2017 4:13 pm
Forum: PowerShell GUIs
Topic: Help with the responsive form
Replies: 19
Views: 189

Re: Help with the responsive form

Just run Add-JobTracker multiple times. That is why it is called "Add"-JobTracker. The verb in PS always telss us what a CmdLet is trying to do.