Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

trying to create a GUI ....looking for suggestions

$
0
0

this is based on sapien powershell which some of you may or may not be familiar with... but looking for suggestions from the very helpful people on this forum.

im trying to build a multi function gui inside sapien... and its coming along rather nicely.

I have a gui that contains buttons that when clicked on it performs some sort of powershell process... such as get ip address of remote pc.. get the services of that pc.... get who is logged on to that pc.. etc.

what im trying to do is create a button next to each function button that will display a little help or info about what that button does.

$button1_click={

get-help get-servicewmihelp -showwindow

function get-servicewmihelp {

<#

.synopsis

this is the short descrition on the WMI version of the service button

#>

param()]

begin{}

process{}

end{}

}

)

when I run it, I get the following error. im trying different things but not getting anywhere. I have been asking in the sapien forum and have gotten suggestions but im trying to widen my responses and thought id ask you guys.

ERROR: Get-Help : Get-Help could not find get-servicewmihelp in a help file in this session. To download updated help topics type: "Update-Help". To get help online,

ERROR: search for the help topic in the TechNet library at http://go.microsoft.com/fwlink/?LinkID=107116.

MainForm.pff (12): ERROR: At Line: 12 char: 2

ERROR: + Get-Help get-servicewmihelp -showwindow

ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ERROR: + CategoryInfo : ResourceUnavailable: (:) [Get-Help], HelpNotFoundException

ERROR: + FullyQualifiedErrorId : HelpNotFound,Microsoft.PowerShell.Commands.GetHelpCommand

ERROR:

>> Execution time: 00:00:22

>> Script Ended


Viewing all articles
Browse latest Browse all 6937

Trending Articles