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

How can I map Ctrl+Shift+S to Save All files in PowerShell ISE

I've got used to pressing Ctrl+Shift+S to save all files in Visual Studio. PowerShell ISE doesn't recognise this key combination, and leaves my files edited without saving them. This means that changes to my scripts aren't saved, and my scripts…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
0
votes
2 answers

Remote Tab in ISE Connects to a powershell 1.0 session

I have PowerShell v3 installed and launch the ISE from my local workstation. When I open a remote tab to a server(win2K8R2 WMF 3 installed) I seem to get a powerShell V1 session. I checked this by inspecting the $host variable. > Name :…
Jason Horner
  • 3,630
  • 3
  • 23
  • 29
0
votes
3 answers

Can't use out-gridview since installing PowerGUI with Powershell V3

Just wondering if anyone seen this and knows a workaround. I'm Running Windows 7 64bit and just upgraded to Powershell V3. Since then, i can't use out-gridview commands. I get the following error. To use the Out-GridView cmdlet, install the…
Jian_H
  • 173
  • 1
  • 4
  • 18
0
votes
1 answer

how to call Microsoft.PowerShell.GraphicalHost in powershell version 3

my current version of ps is v3, however if I need to call the assembly "Microsoft.PowerShell.GraphicalHost", this assembly is part of Windows Management Framework Core, which I have installed, but still get following error Add-Type : Could not load…
Jian_H
  • 173
  • 1
  • 4
  • 18
0
votes
2 answers

Can't create a function in PowerShell

I'm trying to add a menu-item in my PowerShell ISE by using this tutorial. Function My-Custom-Function { Write-Host “Running my very own function!” } $psISE.CustomMenu.Submenus.Add(“Run Custom Function”, {My-Custom-Function},…
Michiel
  • 7,855
  • 16
  • 61
  • 113
0
votes
1 answer

What caused this unhelpful Powershell ISE error message?

I'm trying to use Powershell ISE as a console app with little success. Comskip is a command line tool and I'm having a AHK script executing the Comskip commercial stipping normally through cmd.exe. Works fine, but lately I started using Unicode…
zcooler
  • 1
  • 2
-1
votes
1 answer

MacOS: Debug Powershell script admin privilege in VSCODE ISE

Using MacOS (M2 Chip): I've Powershell script which I need to run as Administrator (sudo). To debug the script I need to run the script in Debug mode from the pwsh prompt --but I don't know how can I run in debug mode. like for python we simply…
-1
votes
1 answer

write PowerShell script to count number of special char and space present in a text file and replace them with tab

Text file name "test.txt" Present file content hello!my@name$is*swaraj mohapatra 11!12#13%14$ Required file content hello my name is swaraj mohapatra 11 12 13 14 15 Output: This file contains 9 special characters $content = Get-Content…
-1
votes
1 answer

Create multiple subfolders with different parent folders CSV - Powershell

I'm trying to create multiple sub folders for different parent directories. I have a CSV file with almost 700 folders. I have 4 columens in my CSV Column A serial code (codigo) Column B course (materia) Column C faculty the course belongs to…
-1
votes
1 answer

Mass add users AD with Powershell

Import-Module ActiveDirectory $file = "C:\Users\Administrator\Documents\UsersHR.csv" $targetDN = "OU=HR,OU=NTTLab,DC=NTTLab,DC=internal" $importedUsers = Import-Csv $file foreach ($user in $importedUsers) { $Username = $User.Username …
-1
votes
1 answer

Using "Compare-Object" resulting in improper formatting

I currently have two arrays full of names. One contains data read in from a txt file, and one read in from a CSV file. I'm trying to return lists of names that appear on both lists, and that only appear on individual lists. For the CSV file,…
JK72
  • 149
  • 1
  • 8
-1
votes
2 answers

Prevent PowerShell ISE from un-collapsing functions during editing

I often collapse long functions while writing scripts in PowerShell ISE. However, if I introduce a syntax error while editing the script above a collapsed function, PowerShell ISE expands all of the functions below the syntax error. How can I…
-1
votes
1 answer

How to change powershell debugger line color to make it readable

I am having a problem to read PowerShell debugger line. Please check line 5. it's much darker in life to the point I can't determine what is the code there. Is there a way to change the background color to yellow or something else so text is…
gene golub
  • 51
  • 3
  • 7
-1
votes
2 answers

Converting first character of a string to uppercase

I have a database of user information but I want to set the first character of column called firstName into a capital letter. I tried doing a for-each loop calling the column name in the script to covert it using the Get-Culture class, but my method…
Katz
  • 826
  • 3
  • 19
  • 40
-1
votes
3 answers

Create Output from LOG/TXT file

This shows the contents of a .log file that logs the use of licenses from a specific vendor. From the log you can for example see that username_1 currently is using license 1, 2, & 3. 14:22:49 (VENDOR) OUT: "License_1" username_1@server459 14:22:49…
Henrik S.
  • 3
  • 3
1 2 3
34
35