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
5
votes
3 answers

How to render clickable link using Powershell

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 noteproperty 'Site Url' $spweb.url Add-Member -input…
Nish
  • 171
  • 2
  • 7
  • 15
5
votes
1 answer

DISTINCT Select-String output on directory/text search

I am curious how to produce a distinct file list based on this example. ** This example produces a list of all .ps1 and .psm1 files that contain the text "folders", but without the text ".invoke" on the same line. $text='folders' dir…
D3vtr0n
  • 2,774
  • 3
  • 33
  • 53
4
votes
2 answers

Using PowerShell backtick character for snippet execution doesn't work

When I run the backtick (`) command on this snippet: Get-WmiObject win32_service | Where-Object { $_.pathname -notlike "C:\windows\*" -and $_.startmode -eq "auto" -and $_.startname -eq "localsystem"} | Select-Object displayname, ` pathname,…
4
votes
2 answers

a program that works like Powershell ISE for Mac OS?

I have couple of scripts that run with Powershell ISE on our windows servers, we have decided to make a MAC to be the server, so I want to run scripts on the MAC. The reason I wrote it in Powershell ISE it because I wanted to make it easier for my…
Oleg
  • 51
  • 1
  • 1
  • 2
4
votes
2 answers

How can I change the WindowTitle of the Read-Host prompt in the PowerShell ISE?

I know how to change the title of the main ISE window using something like $Host.UI.RawUI.WindowTitle = "My Awesome New Window Title" but I'm wondering how to get access to the title of the window that pops upon a Read-Host request like: $strP4Pass…
rand0m1
  • 389
  • 1
  • 4
  • 13
4
votes
0 answers

Windows PowerShell Tab Size

I've started using PowerShell. The tab size is 8 spaces. I don't want that - I want 4 spaces. How do I achieve this please?
Robin Andrews
  • 3,514
  • 11
  • 43
  • 111
4
votes
2 answers

Powershell editor with intellisense that I can embed into my program?

I have a C# application and want to allow people to write powershell code within my app. Does anyone know of a powershell editor with intellisense that fits the bill??
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
4
votes
2 answers

Why does Chocolatey hang when using Powershell ISE without the `-y` switch?

When using PowerShell ISE with Chocolatey to install applications, if I forget the -y switch, it hangs waiting on some sort of "confirmation" that's not popping up anywhere? I have to Ctrl+Alt+Del to kill PowerShell ISE and Chocolatey and it leaves…
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
4
votes
2 answers

Is it possible to treat consecutive delimiters as one using Import-Csv?

I have some log files in txt format that contain double tabbed columns. I'm using the following PowerShell: Import-Csv C:\path\to\file\PageLog.txt -Delimiter "`t" | Export-Csv C:\path\to\file\PageLog.csv -NoTypeInformation So nothing crazy there,…
Heath
  • 55
  • 6
4
votes
2 answers

Why does accessing a parameter variable's attributes with Get-Variable only work the first time in the ISE?

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 ( [ValidateSet('Startup', 'Shutdown', 'LogOn', 'LogOff')] …
DarkLite1
  • 13,637
  • 40
  • 117
  • 214
4
votes
3 answers

Parameters into Powershell_ISE from Command Line

I've developed a script in Powershell_ISE to backup a SQL Server database on one server, move the file to another server and restore to the target server with a different database name. Works fine. It uses 6 mandatory parameters. Within…
4
votes
0 answers

PowerShell ISE Help Window doesn't show Parameters

PowerShell ISE has a Help Window pop-up, but I cannot enable Parameters (and Description) from Settings - Help Sections. Which is very inconvenient because despite having quick access to this really "helpful" help I still always have to go to online…
Bad
  • 4,967
  • 4
  • 34
  • 50
4
votes
1 answer

Getting output from background jobs

I created the following script to reset the password of the local admin account on all machines in a specific host file. This script functions properly and provides a useful output, but it is slow as it only does one machine at a time. # function to…
cmorris14
  • 97
  • 1
  • 2
  • 7
4
votes
3 answers

Hyphen in the input parameter for where-object Powershell

I am a beginner in Powershell. I have some queries. I am using Import-Csv cmdlet for a tab delimited text file that is generated from an old software. Below is an equivalent version of the delimited file. From the text file I have to filter those…
Saravana Murthy
  • 543
  • 2
  • 6
  • 16
4
votes
2 answers

How to make Powershell ISE support colors and non-ASCII characters?

Here is some sample output from Windows PowerShell when I run a certain grunt task in my project directory: Done, without errors. Execution Time (2015-08-25 01:57:14 UTC) loading tasks 9ms ██████ 17% loading grunt-contrib-copy …
geoff
  • 2,251
  • 1
  • 19
  • 34