Questions tagged [powershell-ise]

PowerShell-ISE refers to Microsoft Windows PowerShell's Integrated Scripting Environment.

PowerShell-ISE refers to Windows PowerShell's Integrated Scripting Environment. The ISE offers the features of the PowerShell console plus script editing and debugging features. ISE is also unicode aware, vs the Console that isn't!

522 questions
3
votes
2 answers

cannot edit powershell_ise.exe.config file

On Win7 64bit, i need to edit the powershell_ise.exe.config file Located in C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe.config. Even after a clean reboot and open the file in notepad++ with admin rights, i cannot save any changes. …
user1161137
  • 1,067
  • 1
  • 11
  • 31
3
votes
1 answer

Real Time Data With Powershell GUI

I'm struggling here. Using Powershell and GUI, how to automatically refresh data on a form? Example with the script below, how to automatically update the label with the number of process executed by my computer? Add-Type -AssemblyName…
3
votes
3 answers

If/ElseIf block not working with -or

I am having a problem with a script I am writing for my son. My intent is a simple reminder to him to remember his chores. I've just started doing PowerShell recently and I'm really enjoying it. I've bought a couple books and been through numerous…
3
votes
2 answers

Is it possible to start Powershell ISE with specified (not default) profile?

I want to have several (more than one) PowerShell profiles which will create different environments. More specifically I need way for start separate PowerShell ISE for work with TFS and other PowerShell ISE instance for regular work. 'TFS'…
Sergey Azarkevich
  • 2,641
  • 2
  • 22
  • 38
3
votes
2 answers

Can I "break when an exception is thrown" in Windows Powershell ISE?

Can I do this in the Powershell ISE like I can in Visual Studio: Obviously I am not expecting the same dialogue and I'd hazard a guess I can wrap a try/catch around the part which calls out to the offending (nested) scripts - the bit of stuff I am…
brumScouse
  • 3,166
  • 1
  • 24
  • 38
3
votes
1 answer

How do I use a variable from one session (a Powershell ISE tab) in another?

Here is a barebones code of what I am trying to achieve.. $destinationDir = "subdir1" #creating tab $newTab = $psise.PowerShellTabs.Add() Do {sleep -m 100} While (!$newTab.CanInvoke) #running required script in tab $newTab.Invoke({…
SatheeshJM
  • 3,575
  • 8
  • 37
  • 60
3
votes
2 answers

Run PowerShell ISE from the command line?

So I have a script that works fine when I run it from PowerShell ISE. However, I need to automate it, so I run powershell.exe .\script.ps1, but I get errors about some of the commands not being recognized (they are from a non-standard module). Any…
Calvin Li
  • 2,614
  • 3
  • 17
  • 25
3
votes
2 answers

I can't 'Out-File' my whole loop just one line

I created a random password generator, I need to Out-File all 10 outputs into a .txt file But what I have now only has 1 line of the output. for ($i=1; $i -le 10; $i++){ $caps = [char[]] "ABCDEFGHJKMNPQRSTUVWXY" $lows = [char[]]…
Musa
  • 553
  • 1
  • 7
  • 19
3
votes
1 answer

How to enable Full Screen mode in Powershell ISE 4.0

I did search on web but did not find a good solution. Here, full screen means that the title bar is hidden. If you use cygwin in Windows, this is the mode when you press ALT+F11.
CS Pei
  • 10,869
  • 1
  • 27
  • 46
3
votes
1 answer

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE when debugging T4Scaffolding.Core Nuget package - Advanced Powershell debugging

I am trying to debug T4Scaffolding.Core Nuget package from outside Visual Studio 2012. I am using Powershell ISE with Powershell 3.0 installed and run under CLRVersion 4.0.30319. I first import several Nuget related items: - Profile.ps1 -…
2
votes
1 answer

how do you mark a block/column in powerShell ISE?

I love the visuals of powershell ISE, but I cannot find how to mark a column or a block in a similar way to cmd.exe's "right button > Mark"?
kirill_igum
  • 3,953
  • 5
  • 47
  • 73
2
votes
1 answer

Carriage return doesn't work as expected in PowerShell ISE

I have this command: Write-Host "123`r456" Output in stand-alone PowerShell: 456 Output in PowerShell ISE: 123456 Thanks.
mcu
  • 3,302
  • 8
  • 38
  • 64
2
votes
1 answer

dot source the files from the script directory in both Powershell console and ISE?

I have the following script in directory c:\scripts\. # . c:\scripts\anotherScript.ps1 function GetScriptRoot { Split-Path $script:MyInvocation.MyCommand.Path } . "$(GetScriptroot)\anotherScript.ps1" However, it raises an error in ISE. Is it a way…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
2
votes
3 answers

Powershell ISE "Illegal characters in path" when piping paths to test-path?

I have the following script in Powershell ISE. cd E:\Data @" xxxx.zip yyyy.zip "@ -split "`n" | % { echo "'$_'"; test-path -path "$_" -EA Stop } However it always raises error. 'xxxx.ZIP' False Illegal characters in path. At line:175 char:27 + % {…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
2
votes
2 answers

Change the default "Edit" action for .ps1 from ISE to VS Code

Like the person in this question, it is frustrating that such obvious things have no clear answers (I've looked at 20 pages and found nothing yet). The default right-click "Edit" action in Windows for .ps1 files is to open with PowerShell_ISE. ISE…
YorSubs
  • 3,194
  • 7
  • 37
  • 60