powershell-ise Questions

2

How can I get PowerShell ISE to work with PowerShell 6.0. Currently, it has 4.0. This server has PowerShell 4.0 installed and I installed PowerShell 6.0 with PowerShell-6.1.0-win-x64.msi from this...
Cao asked 22/9, 2018 at 3:32

1

Not sure why, but today my workstation refuses to load the Powershell ISE. I can load Powershell just fine and my cmdlets work. I've tried loading both the 32bit and 64bit ISEs and both crash for t...
Loomis asked 27/8, 2013 at 14:15

3

Solved

My Powershell ISE is crashing upon being launched; and I believe it is due to a tab/file that is being loaded when ISE returns from being exited incorrectly. As a result, I'm currently unable to la...
Renell asked 10/3, 2015 at 18:53

3

Solved

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 reproduct...

2

In a Windows PowerShell script, I want to execute code which converts a pipeline to CSV format, and encoding should be in UTF-8. How can I do this?
Omission asked 13/1, 2014 at 11:20

3

Solved

The maximum number of lines in my environment is 47. Can I measure this value programmatically?
Interlink asked 2/7, 2017 at 13:21

1

I have been using this PowerShell script to send my an email to me when opened. $EmailFrom = "[email protected]" $EmailTo = "[email protected]" $Subject = "sample subject" $Body = "sam...
Nemesis asked 24/1, 2016 at 6:31

2

Solved

Thanks to the great people at StackOverflow we received a very good answer on how to retrieve the values defined in ValidateSet within the Param() clause of a script or function: Param ( [Validat...
Isobel asked 10/3, 2017 at 7:24

1

Solved

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 f...
Rodrickrodrigez asked 31/1, 2017 at 13:52

3

Solved

I'm writing my PowerShell scripts with Windows PowerShell ISE. When I change someting in the script and run the script, not the last saved version of the script is executed but the older one. Only ...
Nipping asked 26/9, 2013 at 8:56

2

Solved

To access a static method, we use [namespace.ClassName]::MethodName() and for static properties we use [namespace.ClassName]::Property How do I iterate through all the static properties insid...
Austronesian asked 4/3, 2016 at 21:2

2

Solved

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 h...

4

Solved

I'm running exactly the same script.ps1 file in a Powershell ISE (manually loading the script and pressing F5) and in a Powershell console (executing the script file). They both work but ISE shows ...

3

Solved

How to refresh Powershell_ise for contents modified outside the IDE. Most of the time i would have opened both Powershell_ise and notepad++ If i does changes in Powershell_ise , notepad++ asks fo...
Adara asked 9/1, 2012 at 14:21

1

Solved

I have python 3 installed on my system and a path to the executable has been added to the PATH. When i inter python in Windows PowerShell (win8.1) it runs fine, however i'd like to use PowerShell I...
Miliary asked 21/7, 2015 at 19:55

1

Solved

I am bothered by the Powershell ISE console window. There is no word wrap feature in the command line. When I am using it, if my command line is very long, I will go too far away from the command. ...
Midsummer asked 8/6, 2015 at 13:42

3

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....
Stopover asked 6/2, 2012 at 15:16

5

Solved

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...
Sparry asked 17/3, 2015 at 13:27

0

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 pro...
Manara asked 27/2, 2015 at 15:8

3

Solved

I have a two-dimensional array of property names and values, which I need to add to a PowerShell object. I have NO issues creating and displaying an object like this using New-Object and Add-Membe...
Overthecounter asked 8/1, 2015 at 17:54

1

Solved

This is weird. I know tab is for command completion in the PowerShell ISE and fine so. But, it also messes up the editing pane. Do this: File > New (Untitled1.ps1 opens) Press tab (all fine, yo...
Namely asked 14/7, 2014 at 11:32

1

I need a PowerShell script to export a list of file names only with no file extension then output to a text file separate for each sub-folder. I need to specify a parent directory in the script, th...

2

Solved

I'm attempting to use a .NET 4.0 assembly in PowerShell ISE, and trying to change the config file which is used via: [System.AppDomain]::CurrentDomain.SetData("APP_CONFIG_FILE", $PathToConfig); ...
Stillwell asked 16/11, 2012 at 16:29

3

Solved

I am using below powershell script to write the output to a html file, the issue is its rendering everything as text. My code: $PagesObject = New-Object PSObject Add-Member -input $PagesObject no...
Playgoer asked 22/3, 2013 at 22:42

1

Solved

I'm trying to implement a set of cmdlets in C# which create and manage external resources, with a similar pattern to New-PSSession, Get-PSSession, Remove-PSSession. The objects created need to do ...
Handal asked 30/1, 2014 at 10:47

© 2022 - 2025 — McMap. All rights reserved.