Questions tagged [powershell-studio]

Powershell Studio refers to an integrated development environment (IDE) for Powershell. This tag should only be used for questions about Powershell Studio.

Powershell Studio is an for . Powershell Studio features a 32 and 64 bit console, a script editor, debugging tools, a forms designer, integrated help, and conversion to executables.

Useful Links

Tagging Recommendation

This tag should only be used for questions that involve achieving some goal with the tools provided by this software. If you can reproduce your question outside of the Powershell Studio environment, it is likely not appropriate to use this tag.

29 questions
1
vote
1 answer

(PowerShell Studio 2014 Trial) Incomplete output in textbox

I created a form using PowerShell Studio 2014 Trial with two controls i.e. a command button & a text button. Below is the code for click event on button1- $button1_Click={ $results=Get-WinEvent -FilterHashtable @{ LogName = "application"; StartTime…
S R
  • 657
  • 3
  • 10
  • 21
0
votes
0 answers

Windows form chart series formatting

Im trying to color the bars weather or not the 'Daily Profit/Loss' value is above Zero or below. I Feel my problem lies in the foreach statement, but can't quite pinpoint. Any help is appreciated. Thank you Clear-Chart $chart1 $script:csv…
iceman
  • 304
  • 1
  • 10
0
votes
2 answers

How to set radius for textbox and button in PowerShell studio?

I'm doing a simple project in PowerShell studio. I want my textbox and button in round shapes, how do I do that in both programmatically or using the properties window
0
votes
0 answers

PowerShell Studio dynamic checkbox naming issue

giving the following PowerShell Studio Code, how can I call and disable the 'David Checkbox' under the 'Checkit' button. I know I am messing up on the checkbox declaration somehow because powershell does not recognize my checkbox as an object: The…
Didi
  • 1
0
votes
0 answers

SAPIEN PowerShell Studio: Issue with New-Object Checkbox regarding Name Assignation

I am fairly new with PowerShell New-Object System.Windows.Forms.CheckBox feature. What I would like to achieve is to create a form with different a dynamic object ( textbox,checkbox,label) The problem comes when I am trying to refer to the checkbox…
Didi
  • 1
0
votes
1 answer

If condition is driving me crazy

Please I need help... two identical strings are not returning $True when checking on IF logical statement. The images illustrates perfectly my frustration. I'm starting with GUIs don't be cruel please. I've tried checking with label text with…
0
votes
2 answers

Populate Checkedlistbox with Servers

I am trying to populate a list with the servers in my domain, and i have partial success. There are 5 items in my list, which is as many servers as i have. Unfortunately they are all just called [Collection] Form is generated with Sapien Powershell…
VxChemical
  • 23
  • 4
0
votes
1 answer

Powershell (studio) - AutoComplete dropdown value clicks a button?

I'm building a GUI for a powershell script. It's a form built in Powershell studio. I have this code which works well: (Get-Content ".\historique.txt") | ? { $_.trim() -ne "" } | set-content ".\historique.txt" $postes_historique = Get-Content…
Rakha
  • 1,874
  • 3
  • 26
  • 60
0
votes
0 answers

How to assign values to checkboxes in CheckedListBox in Powershell studio

I have a CheckedListBox in my GUI that displays each one of the roles I need to present to the user, as pictured below: Each one of these roles is tied to specific number in the database, as pictured here: As you can see, the role AUDIT is assigned…
Matt
  • 379
  • 7
  • 18
0
votes
1 answer

Connect a function to progess-bar in powershell studio

Is there a way that I can connect a function to a progress bar object? $buttonAdd_Click = { create $loadingbar.Refresh } This is my button object. The variable `$loadingbar is my progess-bar object. This is my create function: function…
Fearcoder
  • 753
  • 3
  • 15
  • 47
0
votes
1 answer

Powershell Studio OwnerDraw Control

I'm creating a form in Powershell studio but I'm can't get it to look the way I want. The Highlighting on objects once they've been checked or selected is anoying. I've heard I can Use the OwnerDraw control to modify this but the only code for this…
Ben
  • 53
  • 1
  • 9
0
votes
1 answer

Unable to get OU structure to populate a comboBox

I'm following along with a powershell tutorial here. I am unable to get the comboxBox to populate as they have in this example. Keeps passing a null item to the combobox helper method of PS Studio. Im able to get a list of my orgs OUs, by name at…
soMuch2Learn
  • 187
  • 2
  • 5
  • 21
0
votes
1 answer

Unable to add-pssnapin microsoft.exchange.management.powershell.admin to powershell studio script

Running powershell v2 with exchange management console 2007 installed. a powershell prompt shows the registered snapings: PS P:\> get-pssnapin -registered | fl name Name : Microsoft.Exchange.Management.PowerShell.Admin Name :…
soMuch2Learn
  • 187
  • 2
  • 5
  • 21
-1
votes
1 answer

(PowerShell Studio) Set specific column width for Out-String

I wanted to set specific column size. Below is the image- Here I have set the width to be 150 & the command is- Get-WinEvent -FilterHashtable @{ LogName = "application"; StartTime = "10/30/2014 12:00:01 AM"; EndTime = "10/30/2014 11:59:59 PM" } |…
1
2