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

Remove-Item - directory name must be less than 248

This is frustrating me so i am asking you guys for help.. i have a million(exaggerating a bit) folders to delete, I can go one by one and delete from Windows Explorer YAY... BUT I want to script it in Powershell (version 4) using this code: $Path =…
-1
votes
1 answer

Powershell script for KMS report

I am new to Powershell Scripting. I what I am trying to accomplish is to write a script that will query WMI for KMS Licence status on just the KMS channel and the CMID of the machine I would like the output to be put into excel. Also The script I am…
Bigjim
  • 1
  • 2
  • 2
-1
votes
1 answer

(PowerShell Studio) Set specific column width for Out-String

I wanted to set specific column size. Below is the image- Here I have set the width to be 150 & the command is- Get-WinEvent -FilterHashtable @{ LogName = "application"; StartTime = "10/30/2014 12:00:01 AM"; EndTime = "10/30/2014 11:59:59 PM" } |…
-1
votes
1 answer

write a a function with parameters to create the new VM

I'm trying to create a function with the parameters to create the VM this is where I'm at. I don't get any errors but nothing executes. Function Create-VM { param ( [string] $SRV1 = "Windows7", [string] $SRAM = "512", [string]…
Musa
  • 553
  • 1
  • 7
  • 19
-1
votes
1 answer

Load assembly error when using the powershell in command line

I have a load.PS1 and it loads 'Microsoft.SqlServer.Smo' as below [System.Reflection.Assembly]::load('Microsoft.SqlServer.Smo') | Out-Null it works well when I use the ISE to load and run it , but get error when I run it in the powershell shell or…
user1504146
  • 79
  • 2
  • 8
-2
votes
1 answer

move tab to another from several edge window at once with powershell

I have two windows Microsoft edge that have two tabs each. so I want to make PowerShell script when its run, the tab move to another tab in each edge.
TS1 BUDE
  • 1
  • 1
-2
votes
1 answer

How can I make if statements right in powershell

I just start doing something with PowerShell and want to make code in which for example I can press 1 and then I take off clock from desktop, but when I press 2 it will be back in his old place. I just don't get that PowerShell syntax. I need some…
Martins
  • 1
  • 1
-2
votes
1 answer

How can we replace multiple match with only one word/phrase replace using powershell

How can we replace multiple match with only one word/phrase replace using powershell Below are the matches in the regex Grant access to Server1 Grant access to Server2 Grant access to Server3 Grant access to Server4 Need to replace all the…
Ian
  • 9
  • 4
-3
votes
1 answer

PowerShell / PowerShell ISE - How to enter a tab indentation in the command window?

In PowerShell at the command line, how do I enter a tab indentation for multiple line commands? Obviously, [tab] or [shift] + [tab] does not work, otherwise I would not ask this question.
Kellen Stuart
  • 7,775
  • 7
  • 59
  • 82
-3
votes
1 answer

How to Go To Implementation in PowerShell ISE

When PowerShell scripts are in several files, it is difficult to understand in which file you want to search for the implementation of a particular function. How can I quickly go to the implementation of a specific function for editing? If in…
vovkas
  • 1,091
  • 10
  • 21
-5
votes
1 answer

Script that shows every group user belongs

I have to create script which lists every group that user, specified by name belongs and shows name of specified user(only local groups and accounts). Specified username should be only argument in script. If we don't declare username, script should…
Dixon
  • 36
  • 1
  • 5
1 2 3
34
35