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

EscapeDataString having differing behaviour between Powershell IDE and Powershell console

I'm a bit confused with this issue! I'm building a bigger script and it was working in the ISE but not in a powershell console. I've managed to track it down to the [System.Uri]::EscapeDataString function which seems to be behaving differently…
Brett Jenkins
  • 192
  • 2
  • 9
8
votes
6 answers

How to copy a file to multiple folders in PowerShell

I am running a script that has multiple environments in it that can be selected from a window that pops up. the only problem I have run into is when I want to set up the script to copy from a source function that I have created and put it into…
bgrif
  • 253
  • 1
  • 4
  • 14
8
votes
2 answers

Copy-Item / Remove-Item child-content only without root folder?

Hi I'm struggling mightily with the following - suppose I have the following directory structure C:\Temp\Test1 and C:\Temp\Test2 What I'd like to do is recursively copy the child-contents of C:\Temp\Test1 to C:\Temp\Test2 without copying the actual…
blue18hutthutt
  • 3,191
  • 5
  • 34
  • 57
7
votes
3 answers

PowerShell ISE how to automate new tab creation with ScriptBlock closures?

I'm trying to automate creation of a bunch of tabs in PowerShell ISE I've started with a function such as function Start-NewTab($name, [ScriptBlock]$scriptBlock) { $tab = $psISE.PowerShellTabs.Add() $tab.DisplayName = $name sleep 2 …
Scott Weinstein
  • 18,890
  • 14
  • 78
  • 115
7
votes
3 answers

How can I measure the window height (number of lines) in powershell?

The maximum number of lines in my environment is 47. Can I measure this value programmatically?
Hyundong Hwang
  • 711
  • 1
  • 8
  • 19
7
votes
2 answers

How to load Powershell ISE 3 with powershell v2 inside?

I just installed new powershell 3 on my Windows 7 machine and than I found out that new version of powershell doesn't work with Sharepoint 2010. I also found a solution for this problem (here or here). But it only solves the problem for the standart…
jumbo
  • 4,670
  • 5
  • 39
  • 44
6
votes
4 answers

Is it possible to use comments in Powershell multiple line commands?

Debugging and testing multiline commands in Powershell ISE has been bugging me for years. I like having multiple line commands because they are easy to read, but they make things harder to debug. As an example, I'm using the following command to…
WhiskerBiscuit
  • 4,795
  • 8
  • 62
  • 100
6
votes
4 answers

Security Warning when running scripts - Unblock-File not unblocking file

I suddenly started to recceive this warning when running any script on my computer: Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your computer... Screenshot: The files are not…
ATur
  • 117
  • 1
  • 2
  • 7
6
votes
1 answer

How do I change the colour of #region tokens in PowerShell ISE

I like to alter the default colour scheme of the PowerShell ISE, specifically to make the script pane "inverted", i.e. light text on a dark background. Comments are coloured PaleGreen: [PS]> ($psise.Options.TokenColors) | ?{$_.Key -eq "Comment"} |…
Charlie Joynt
  • 4,411
  • 1
  • 24
  • 46
6
votes
1 answer

Powershell 2 ISE, not stopping on breakpoints in imported modules

When we set breakpoints within a Module we've imported the debugger ignores the breakpoint. Has anybody else seen this behaviour? This is driving me nuts, we use PowerShell Modules extensively. The thing that's really weird is I can see the…
David Hayes
  • 7,402
  • 14
  • 50
  • 62
6
votes
3 answers

Powershell ISE wrongly interprets openssl.exe normal output as error

I am trying to debug a script in the PowerShell ISE, but I am running in an issue where the normal output of a line is interpreted as an error by the ISE I have been able to simplify the reproduction of this issue: I get whichever version of openssl…
6
votes
5 answers

How to ignore warning errors?

I have the following PowerShell script. It picks up the NetBIOS name of computers within a given IP address. I'm using a pipe so as to dump the results into a text file. The problem is that if an IP address is not available, a warning is…
Obby
  • 1,353
  • 2
  • 13
  • 20
6
votes
5 answers

PowerShell - Copy specific files from specific folders

So, the folder structure looks like this: SourceFolder file1.txt file1.doc Subfolder1 file2.txt file2.doc SubSubFolder file3.txt doc3.txt What I want to do is copy all .txt files from folders, whose (folder) names contains the eng, to a…
John Enxada
  • 95
  • 1
  • 1
  • 4
6
votes
0 answers

PowerShell : Import-Module : assembly name or codebase was invalid (HRESULT: 0x80131047)

I just installed the new ISE Module Browser, wanted to try the first module, I've chosen the Bing module (which require another module called BetterCredentials, but that was handled well, so no problem). So as mentioned in the beginning of the…
AymenDaoudi
  • 7,811
  • 9
  • 52
  • 84
6
votes
3 answers

Powershell ISE + vim

Is it possible to make Powershell ISE behave like vim with some vim-like editing mode or plugin? In netbeans I'm using jVi, and in Visual Studio I'm using VsVim, is there something similar for PowerShell ISE? Or should I drop Powershell ISE…
bjarven
  • 771
  • 2
  • 10
  • 27
1 2
3
34 35