Search found 709 matches

by dan.potter
Tue Sep 26, 2017 7:49 am
Forum: PowerShell
Topic: CMD to PS formatting help. Netapp install.
Replies: 10
Views: 4744

CMD to PS formatting help. Netapp install.

I need to run this command in powershell and I've tried numerous different ways. I believe PS has an issue with the quotes although it doesn't throw an error. snapdrive7.0.exe /s /v"/qn SILENT_MODE=1 /Li SDInstall.log LPSM_SERIALNUMBER=serialnumber INSTALLDIR=\"c:\Program Files\NetApp\SnapDrive\" SV...
by dan.potter
Fri Aug 04, 2017 8:19 am
Forum: PowerShell GUIs
Topic: 2012r2 visual style button click
Replies: 2
Views: 1050

Re: 2012r2 visual style button click

Code isn't really necessary. On my desktop or a 2008 server I can see a very slight blink of the button when it's pressed. That doesn't seem to happen on my 2012 server. Flat seems to work better although it's difficult to find the exact system colors for the mousehover and border. Not my favorite b...
by dan.potter
Thu Aug 03, 2017 7:36 am
Forum: PowerShell GUIs
Topic: 2012r2 visual style button click
Replies: 2
Views: 1050

2012r2 visual style button click

Anyone know how to make animated buttons in 2012? I've tried changing the visual effects for the os and each flat style appearance option for the button but it still does not indicate when the button is pressed.
by dan.potter
Wed Jun 14, 2017 12:18 pm
Forum: PowerShell GUIs
Topic: Contextmenustrip is shown on controls it's not linked to.
Replies: 2
Views: 939

Re: Contextmenustrip is shown on controls it's not linked to.

My mistake.. must have accidentally assigned the CM to the tabcontrol at some point.
by dan.potter
Wed Jun 14, 2017 12:00 pm
Forum: PowerShell GUIs
Topic: Contextmenustrip is shown on controls it's not linked to.
Replies: 2
Views: 939

Contextmenustrip is shown on controls it's not linked to.

I have a gui with five tab pages. on the first is a datagrid with an assigned contextmenustrip. If I change tabs and right click on another control the contextmenustrip is shown.

What is happening?
by dan.potter
Fri May 26, 2017 6:59 am
Forum: PowerShell GUIs
Topic: job tracker get portion of job?
Replies: 10
Views: 3387

Re: job tracker get portion of job?

Confirmed the code does suppress the popups. Running any AD cmdlet in a job even without importing the module does that. Normally I wouldn't be getting the job inside the update script so I would never see it. Thought it'd be cool to show the progress bar for the clone popup only instead of trying t...
by dan.potter
Thu May 25, 2017 7:18 am
Forum: PowerShell GUIs
Topic: job tracker get portion of job?
Replies: 10
Views: 3387

job tracker get portion of job?

While troubleshooting creation of a vm within the job tracker framework I placed the get-job $job -keep in the update script. The ticker is 100 ms. See image below, the Active directory module import flashes on the screen each time the job is returned. I was wondering if I could get only the clone w...
by dan.potter
Wed May 17, 2017 9:39 am
Forum: PowerShell GUIs
Topic: Clear listview subitems?
Replies: 3
Views: 1746

Re: Clear listview subitems?

Thanks, I find this control much more difficult that any of the others :-)

Success with this although I think it should be simpler.
  1. $listview1.Groups | % {$_.items | % {
  2.            
  3.             $_.SubItems.RemoveAt(1)
  4.            
  5.         }
  6.        
  7.     }
by dan.potter
Wed May 17, 2017 8:56 am
Forum: PowerShell GUIs
Topic: Clear listview subitems?
Replies: 3
Views: 1746

Clear listview subitems?

I'm working with a listview for server checks and I'm stumped. I have columns name and status. How do you remove and readd or update the current subitem without clearing the name column? $agents = $listview1.Groups[0].Items $agents | % { $current = $_ switch ($current.Text) { encase{ if ($services.n...
by dan.potter
Fri May 12, 2017 1:16 pm
Forum: PowerShell
Topic: Help with wsdl new-webserviceproxy.
Replies: 0
Views: 5872

Help with wsdl new-webserviceproxy.

Shot in the dark here because I can't find an exact example of this anywhere. I'm trying to figure out how to format the arguments and I keep getting the 'can't find overload...' Here is the method and definition, I know it requires basic authentication and the case_ID OpGet Method string OpGet(Micr...