Support Forums

Search found 10021 matches

by jvierra
Fri Dec 02, 2016 4:04 pm
Forum: PowerShell GUIs
Topic: [HELP] Text input into a variable
Replies: 5
Views: 38

Re: [HELP] Text input into a variable

Your textbox is not named as you posted. It is named $objTextBox
by jvierra
Fri Dec 02, 2016 3:40 pm
Forum: PowerShell GUIs
Topic: [HELP] Text input into a variable
Replies: 5
Views: 38

Re: [HELP] Text input into a variable

Is that in a button or somewhere else in the form?
by jvierra
Fri Dec 02, 2016 3:27 pm
Forum: PowerShell GUIs
Topic: Script freezes when querying Azure
Replies: 1
Views: 37

Re: Script freezes when querying Azure

First we have to fix your coding errors: Write-Host "Checking if $NewRGName exist in $NewRGLocation" try{ if($GetRGResult = Get-AzureRmResourceGroup -Name $NewRGName -Location $NewRGLocation -ErrorAction Stop){ Write-Host "$NewRGName already exist in $NewRGLocation" -Fore...
by jvierra
Fri Dec 02, 2016 3:19 pm
Forum: PowerShell GUIs
Topic: [HELP] Text input into a variable
Replies: 5
Views: 38

Re: [HELP] Text input into a variable

The data remains in the textbox and can be retrieved any time you need to use it. All form controls are variables and objects containing variables. No need to use temporary variables.
by jvierra
Fri Dec 02, 2016 12:57 pm
Forum: PowerShell GUIs
Topic: Form Hang when Connecting to API
Replies: 3
Views: 37

Re: Form Hang when Connecting to API

That would be something for the API vendor to address.
What command are you using to connect?

This issue only happens with a form so I will move this to the PowerShell GUI forum. Your links will still work.
by jvierra
Fri Dec 02, 2016 12:53 pm
Forum: PowerShell GUIs
Topic: [HELP] When button is clicked Verbose what is being done
Replies: 5
Views: 19

Re: [HELP] When button is clicked Verbose what is being done

Yes. How else would you create a textbox?
by jvierra
Fri Dec 02, 2016 11:52 am
Forum: PowerShell GUIs
Topic: [HELP] When button is clicked Verbose what is being done
Replies: 5
Views: 19

Re: [HELP] When button is clicked Verbose what is being done

To capture verbose output do this:

$testbox1.Lines = copy-item *.txt d:\test2 -verbose 4>&1
by jvierra
Fri Dec 02, 2016 11:44 am
Forum: PowerShell GUIs
Topic: [HELP] When button is clicked Verbose what is being done
Replies: 5
Views: 19

Re: [HELP] When button is clicked Verbose what is being done

You have to capture the output and assign it to a control.

Do not do this:
$usb = Get-disk | where {$_.FriendlyName -like "*DTR30G2*"} | select number -ExpandProperty number -OutVariable $usb

To get the disk number it looks like this:
$usb = (Get-disk -FriendlyName DTR30G2).Number
by jvierra
Fri Dec 02, 2016 10:01 am
Forum: PowerShell GUIs
Topic: My First Form - Issue with return data
Replies: 2
Views: 39

Re: My First Form - Issue with return data

It is very simple to do.

Code: Select all

$frmSelectPrinter_Load = {
$textbox1.Lines = Get-Printer -ComputerName 'braun-print-lex' | Select-Object -Expand name
}
by jvierra
Fri Dec 02, 2016 2:33 am
Forum: PowerShell GUIs
Topic: Gui Project issue installing Windows Features
Replies: 2
Views: 26

Re: Gui Project issue installing Windows Features

No problem. Coffee always helps me too.

Go to advanced search

cron