Search found 12959 matches

by jvierra
Tue Dec 18, 2018 3:17 pm
Forum: Windows PowerShell
Topic: What product will work
Replies: 1
Views: 34

Re: What product will work

Your question is very basic and is not really about a product. Any script can "push" or copy a script to a group of systems. As far as the "polling" part goes that is not answerable without some idea of what the script does. Perhaps you might start by asking the author or vendor of the script for mo...
by jvierra
Mon Dec 17, 2018 12:29 pm
Forum: PowerShell GUIs
Topic: Form doesn't resize correctly on RDS 2012
Replies: 2
Views: 35

Re: Form doesn't resize correctly on RDS 2012

The most likely cause is that your form has a greater size than the resolution of the RDS session. Your for is 1090 wide. What are the remote session display settings?
by jvierra
Sun Dec 16, 2018 1:35 pm
Forum: PowerShell GUIs
Topic: Datagrid does not allow delete row when "EditOnEnter"
Replies: 3
Views: 98

Re: Datagrid does not allow delete row when "EditOnEnter"

I just tested. Set grid to "EnterOnKeyStroke" to get it to allow deletions. "EditOnEnter" always forces the first cell to be entered whenever the record is selected. To delete programmatically do the following: $buttonDeleteRow_Click = { $ix = $datagridview1.SelectedCells[0].RowIndex $datagridview1....
by jvierra
Sun Dec 16, 2018 11:51 am
Forum: PowerShell GUIs
Topic: Datagrid does not allow delete row when "EditOnEnter"
Replies: 3
Views: 98

Re: Datagrid does not allow delete row when "EditOnEnter"

In your delete code cancel the edit on the row before deleting it.

You can also select the row with the row header which will not start an edit. Once you are in edit mode delete is not available. Use the row selector (header) to select then delete the row.
by jvierra
Thu Dec 13, 2018 12:41 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 239

Re: Using PowerShell to detect and remove certain type of software?

I have modified the example to produce extra messages that make what is happening easier to understand - I think.
by jvierra
Thu Dec 13, 2018 12:06 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 239

Re: Using PowerShell to detect and remove certain type of software?

To further modify the design to obtain the desired behaviors we can use PwoerShell's built-in capability of setting and managing the preferences dynamically.

Here is how that is accomplished in code.

<file to be posted>
by jvierra
Wed Dec 12, 2018 11:03 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 239

Re: Using PowerShell to detect and remove certain type of software?

PowerShell 2 is no longer supported by Microsoft. It is considered a security problem. You need to upgrade.

PS does not support most of the extensions to PS at V3 and later. Just add the "= $true" to the "[Parameter(" statement

[Parameter(Mandatory=$true)]
by jvierra
Wed Dec 12, 2018 10:36 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 239

Re: Using PowerShell to detect and remove certain type of software?

Works perfectly for me. You must have damaged the file in some way.

Download this again and don't make any changes to the file before running it.
by jvierra
Wed Dec 12, 2018 6:54 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 239

Re: Using PowerShell to detect and remove certain type of software?

Here is a rethink of what you are doing. It can help you to discover your issue. It is tested. I am posting it to help you get an idea of how you have to approach a problem like this. It will not remove anything until you change the "$ShouldProcess" variable.
by jvierra
Tue Dec 11, 2018 9:54 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 239

Re: Using PowerShell to detect and remove certain type of software?

As I noted, the code as posted cannot work. It does not do anything you expect from what I see. It attempts to uninstall everything. You try to uninstall everything that matches and doesn't math O365. That includes all software. The following logic includes all things found: if ($uninstall.DisplayNa...