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
4
votes
1 answer

Powershell ISE Lacks color output

I am using Powershell ISE to run a build script - which in turn uses MSBuild - however - it does not allow the textual colors of MSBuild to shine through. MSBuild outputs color coded messages - yellow, grey, green or red depending on its…
Tahir Hassan
  • 5,715
  • 6
  • 45
  • 65
4
votes
1 answer

Clearing ISE Powershell environment / debugging methodology

When writing a powershell script in ISE I have something analogous to (which I execute with F5): Function DoSomethingNow { "What am I doing?" } DoSomethingNow The problem is if I rename or remove DoSomethingNow it is still available in the…
m.edmondson
  • 30,382
  • 27
  • 123
  • 206
4
votes
2 answers

Powershell debugging event -Action code block

I have script watching file creation in a specific directory. I'm using Register-ObjectEvent after creating a System.IO.FileSystemWatcher, It works great, but if I set a break point in the -Action code block the IDE generates a: WARNING: Breakpoint…
Pablo
  • 2,376
  • 5
  • 26
  • 34
4
votes
1 answer

Can I make the PowerShell $error object behave consistently in both script and interactive mode?

I'm writing a PowerShell script that uses $error to detect and respond to errors. My problem is that I get different behavior for the $error object depending on how I run the script. If I run it interactively (specifically, from PowerShell ISE),…
Matt
  • 5,052
  • 4
  • 36
  • 54
4
votes
2 answers

PowerShell Script to query and delete print jobs older than "x" days

I started putting this PowerShell Script together, the hope would be to replace some tasks that are currently carried out manually I'm using the get-Date.AddDays() function I'm using the ISE to build the script and in testing I get output if I…
Matt Hamende
  • 139
  • 2
  • 4
  • 16
3
votes
2 answers

While working in Powershell, how do I pause between list items?

I have been working on this for a while and I cannot find this utilization anywhere. I am using a powershell array and the foreach statement: @('program 1','program 2','program 3').foreach{winget show $_ -args} I then want to have a pause between…
3
votes
1 answer

Powershell Array is printing the item index along with values

I am returning the array in Powershell. But in response, I am getting array values along with the indexes of the respective values. How I can stop the item index from printing in the console. Code Example: $data =…
vimal mishra
  • 1,087
  • 2
  • 12
  • 32
3
votes
0 answers

Visual Studio Code - PowerShell debugging (global variables and Intellisense)

I need some help here. I think Visual Studio Code is a great replacement for PowerShell ISE, however, there a few things that I am not sure if I am doing something wrong or if VS Code is just buggy yet. When debugging my PowerShell code, not only…
3
votes
3 answers

kubectl exec command not working from powershell ISE (works from powershell) - Is there a reason or workaround to make it work?

I have recently started working with Kubernetes and Docker and still new with how it all works. I have made a ps1 script to run all the steps I need to do to build image and execute image on Kubernetes. What I see is all steps work fine on ISE…
Pramod Yadav
  • 467
  • 8
  • 14
3
votes
2 answers

Powershell ISE cannot start after (foolishly) deleting all variables

In my eagerness to find out what variables were protected or constants, I decided to just see what ones could be removed - assuming those mentioned above would be left alone. What I didn't realize is the removal of those variables would not be…
rand0m1
  • 389
  • 1
  • 4
  • 13
3
votes
1 answer

Powershell: Copy all Subdirectory and Contents in Parent Folder to Another Folder Destination

I have some folders called C:\Source C:\Destination C:\Source contains ---> FolderA (having few files) ---> FolderB (having few files) ... etc I want to copy all subdirectories into C:\Destination How would I write Powershell program which…
user11500819
3
votes
2 answers

Python errors out in Powershell ISE

I am at Chapter One of Zed Shaw's Python the Hard Way book and I'm already stuck. I can run python in a command shell, but when I try to run it in PowerShell, I get this: python : Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916…
Mark Folse
  • 29
  • 3
3
votes
2 answers

Out-Host -Paging error "The method or operation is not implemented. " (ISE)

I execute this Powershell command: Get-Process | Out-Host -Paging But it returns me error: ut-lineoutput : The method or operation is not implemented. At line:1 char:1 + Get-Process | Out-Host -Paging + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +…
user576510
  • 5,777
  • 20
  • 81
  • 144
3
votes
1 answer

Powershell ISE - how to start new tab by command

I have few old cmd/batch files that use start command to open new windows If I am in powershell ISE, I was hoping they would automatically open in new tab, but it doesn't work that way Is there a simple command I can replace "start" with to simply…
Kalpesh Soni
  • 6,879
  • 2
  • 56
  • 59
3
votes
1 answer

PowerShell ISE Crash on Ctrl-Space

I'm running PowerShell 5.1 on Windows 10. From within ISE anytime I press ctrl-space to get parameter options I am greeted with this error. How can this be fixed so it stops crashing? --------------------------- Windows PowerShell ISE -…
ChiliYago
  • 11,341
  • 23
  • 79
  • 126