PowerGUI is a graphical user interface and script editor for Microsoft Windows PowerShell.
Questions tagged [powergui]
48 questions
2
votes
1 answer
PowerShell Cancel Button Stop Script
I am having trouble with some PS GUI functionality.
I have tried quite a few things and have been looking everywhere (ALL THE LINKS ARE PURPLE!).
I have a cancel button on my form, right now when the user clicks the cancel button, it points to this…

BRBT
- 1,467
- 8
- 28
- 48
2
votes
3 answers
Can't get powershell script to run inside PowerGUI
When I run my script directly from the Powershell console it works. When I run my script in PowerGUI and try instantiate an object, I get an error:
Exception calling ".ctor" with "3" argument(s): "Could not load file or assembly 'MyLib,…

gerald
- 23
- 1
- 4
2
votes
1 answer
Debug PowerShell using PowerGUI
I use PowerGUI to edit my script. In Visual Studio, I can add command line argument from project properties. However, I cannot find a way to set parameters to the UI to debug my codes with specified $args.
For example, I set one debug point in…

David.Chu.ca
- 37,408
- 63
- 148
- 190
2
votes
0 answers
Debugging init.ps1 and install.ps1 during package installation within Visual Studio (using PowerShell VSX) or Powershell scripting IDE
My goal is to debug within Visual Studio 2012 Nuget powershell scripts and modules that are installed using Nuget powershell console. Ideally I would like to intercept running these .ps1 scripts under folder:
\packages\MvcMembership
\tools
…

Rad
- 933
- 1
- 15
- 32
1
vote
2 answers
How to determin CaretColumn in PowerGUI Script editor?
I found the following
[Quest.PowerGUI.SDK.ScriptEditorFactory]::CurrentInstance.CurrentDocumentWindow.Document.CaretLine
to determine the line of the cursor in PowerGui 2.4 Script editor.
But I found nothing to get the column. Is it really…

bernd_k
- 11,558
- 7
- 45
- 64
1
vote
2 answers
PowerGUI script editor does not recognize the updated powershell version?
I have ARS Shell 1.7.0 installed as part of ARS 6.9 & my MS (windows) powershell version is 4 (obtained by $PSVersionTable.PSVersion, screenshot below)
however when I do the same within the PowerGUI I get version as 2? This has started after i…

sk8er_boi47
- 383
- 1
- 4
- 15
1
vote
2 answers
How do I generate a self-signed certificate and use it to sign my powershell script?
So I've been researching/googling for the last 2 hours, and I'm practically at the point of tears...
I can't use New-SelfSignedCertificate because I'm on Windows 7.
I can't use makecert because of a bug that won't allow me to install the SDK for…

XViper
- 35
- 6
1
vote
1 answer
how to refer to a dependency PowerShell file when compiling to EXE using PowerGUI
I am trying to compile two separated Powershell files into a single .EXE using the solution PowerGUI .
It seems to support this feature as it even has a button called Dependencies for that purpose.
But I couldn't find any example of how to refer to…

YaKs
- 143
- 12
1
vote
2 answers
Problems converting ps1 to exe using PowerGUI
I'm trying to convert my PowerShell project to an executable program (.exe). After some research I found PowerGUI. After converting my .ps1 file into an exe I ran into some problems:
Firstly it takes ages to start the program (about 15 seconds), is…

Bjorn
- 21
- 6
1
vote
3 answers
How do I run PowerShell scripts in debug mode in PowerGUI under .NET 4 Framework?
I've read the whole thread about running PowerShell under .NET 4.0, including the warnings about what happens when using the registry keys to make the scripts run under that framework.
So far, I only get the desired result with the registry keys. …

Scott Lawrence
- 6,993
- 12
- 46
- 64
1
vote
1 answer
Why Log4net does not log in PowerGUI?
I use log4net as logger and here is my appender:

Patrick
- 621
- 2
- 7
- 21
1
vote
1 answer
Unable to update PowerGUI Script editor to latest version
OS: Windows 7 Ultimate SP1 x64.
At some point I figured I can no longer update my IDE for Powershell - PowerGUI Script Editor (latest is v3.7.0.92 at the moment of writing). I am getting this error when inside the script editor -> check for updates,…

Victor Zakharov
- 25,801
- 18
- 85
- 151
1
vote
2 answers
I cannot debug in PowerGui
I have PS V2 and PowerGUI (1.9.6.1027). I set a debug point in my script in PowerGUI, but I cannot get debug workin when I start debug from tool bar or menu item. I got a dialog of "Continue with this operation?" as caption. There are 4 options…

David.Chu.ca
- 37,408
- 63
- 148
- 190
1
vote
1 answer
PowerGui - How do I specify that I only want the first 100 characters of the body?
How do I specify that I only want the first 100 characters of the body? Right now, I get the message "Warning: column "Body" does not fit into the display and was removed."
Here is the code in its entirety:
#connect to outlook
$GetOutlook =…

Jonathan Morningstar
- 421
- 3
- 11
- 25
1
vote
2 answers
PowerGui - How do I output to text file
How do I get the display to kick out to a text file?
#show task array to screen
$TaskList | Sort DueDate -descending | Format-Table -Auto
Here is the code in its entirety:
#connect to outlook
$GetOutlook = New-Object -com "Outlook.Application";…

Jonathan Morningstar
- 421
- 3
- 11
- 25