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. Powershell ISE was introduced with Powershell 2.0 and ships with it as of Windows 7.

Features

  • Integrated debugger.
  • Syntax highlighting.
  • Tab completion.
  • Up to 8 PowerShell Unicode-enabled consoles (Runspaces) in a tabbed UI.
  • The ability to run only the selected parts in a script.
74 questions
40
votes
3 answers

Is there a way to disable script echoing in the PowerShell ISE?

Whenever I want to test execution of my script in the PowerShell ISE, the entire script gets echoed to the console before it executes. Then, any actual output from the script gets written starting on a line immediately afterward. This puts a lot of…
Iszi
  • 13,585
  • 44
  • 113
  • 181
16
votes
1 answer

Line wrapping in PowerShell ISE Console?

I sometimes write long lines of code as I am playing with things in the PowerShell ISE (v4 on Windows 8.1). I find its console window helpful in many ways, but I'm unable to figure out how to make it wrap long lines; it makes me use my mouse when I…
NextInLine
  • 567
  • 2
  • 6
  • 13
8
votes
5 answers

PowerShell ISE - Is there a keyboard shortcut for commenting out lines or multiple lines

In PowerShell ISE I would like to comment out a line or multiple lines at once with a keyboard shortcut like how Sublime Text does this. Is this possible to add or remove the # shown in the example below via a keyboard…
Ste
  • 1,166
  • 2
  • 9
  • 23
7
votes
1 answer

How to lock Powershell ISE console output scroll?

I'm using Powershell ISE for running some batch scripts. The outputs will be long and these programs will run for quite a some time. The problem I'm facing is I'm unable to lock the console output to any position to be able to read some errors that…
Buddha
  • 485
  • 5
  • 12
7
votes
1 answer

My 'Edit' context action when right-clicking a Powershell file has disappeared

I seem to have lost the right-click Edit action for *.ps1 files which used to launch Powershell ISE. How can I get it back? I think it must have happened after I installed and uninstalled PowerGui.
shamp00
  • 321
  • 4
  • 11
7
votes
1 answer

In Powershell, what is the difference between -Property and -ExpandProperty?

Running the cmdlets, the outputs are slightly different, and I'm just trying to understand the difference between the two cmdlets and why you would use one over the other. Example: Get-Date | Select -Property…
Laura
  • 105
  • 1
  • 4
6
votes
3 answers

Always Run PowerShell ISE As Admin

I have Windows 10 and run some PowerShell commands through the Outlook COM object. This requires PowerShell to be running the same level of access (running as admin or user) as Outlook. As I need PowerShell to be running as administrator for other…
Deadly-Bagel
  • 423
  • 1
  • 3
  • 13
4
votes
1 answer

Environment.OSVersion in PowerShell vs PowerShell ISE

Why is it that I see 2 different versions of my OS from PowerShell and PowerShell ISE? The OS: Microsoft Windows Server 2012 R2 Datacenter Evaluation PowerShell: version 4.0 PowerShell PS C:\> [System.Environment]::OSVersion.Version Major Minor …
slybloty
  • 495
  • 3
  • 9
  • 24
4
votes
2 answers

Excluding a specific folder in PowerShell

I'm pretty new to scripting, as well as to PowerShell. What I'm trying to do is deploy files from one folder (C:\Deployments\QA\QADEP-1504\Processor Handlers\Release) to another folder on a remote server…
Zero596
  • 83
  • 1
  • 10
4
votes
1 answer

How to get current path in powershell into a variable

(I don't speak English. Hope you understand.) Hi, I have a powershell script(.ps1) and it needs to work with the current path(e.g. "C:\Users\user\Desktop"). I don't know how to set it into a variable. I know the variable $PWD, but it is: Path …
Andrew
  • 55
  • 1
  • 2
  • 4
4
votes
2 answers

Reverse search in PowerShell ISE wanted

In Bash, you can reverse search your history using Ctrl-R and start typing. Is there a similar feature in Windows PowerShell ISE?
Michael S.
  • 3,987
  • 8
  • 42
  • 64
3
votes
1 answer

How to avoid word wrap in PowerShell ISE output pane

When I execute a command that gives huge output, infact it is log of a running server, I see that PowerShell ISE output pane is automatically wrapping the text to around half of the screen width when the tab in which the command is running is not…
Buddha
  • 485
  • 5
  • 12
3
votes
2 answers

Difference between Echo and Write-Host in PowerShell ISE

I'm starting to learn (beginner) about PowerShell script. I found that echo and Write-Host both can display output in the console screen, so what is the difference between them? I read this question from Stack Overflow, but I am unable to understand…
Sann
  • 99
  • 1
  • 4
  • 8
3
votes
2 answers

Power Shell Script to export mailbox

I have a script its working and it is programmed to take backup for every mailbox for a month and store it to local shared drive. When I run the script it export whole database instead of specified date range. I am not a programmer. I searched a…
2
votes
1 answer

How do we get statistics from a continuous ping in PowerShell?

In Windows command prompt, when you Ctrl-C out of a continuous ping, the terminal will display the statistics: Ping statistics for ::1: Packets: Sent = 6, Received = 6, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: …
HSuke
  • 511
  • 1
  • 4
  • 10
1
2 3 4 5