Top "Powershell-ise" questions

PowerShell-ISE refers to Microsoft Windows PowerShell's Integrated Scripting Environment.

Create directory if it does not exist

I am writing a PowerShell script to create several directories if they do not exist. The filesystem looks similar to …

powershell windows-server-2008 powershell-ise
Read file line by line in PowerShell

I want to read a file line by line in PowerShell. Specifically, I want to loop through the file, store …

powershell powershell-ise
Passing a variable to a powershell script via command line

I am new to powershell, and trying to teach myself the basics. I need to write a ps script to …

powershell powershell-ise
How to add properties to a PowerShell object from an array

I have a two-dimensional array of property names and values, which I need to add to a PowerShell object. I …

object powershell properties powershell-ise
Reload the path in PowerShell

If I have an instance of PowerShell ISE running and I install something that modifies the PATH or I modify …

powershell console powershell-ise
How to pass needed parameters to script in Powershell ISE?

See Title. I specified needed parameters in the head of a script: param ($G_ARCHIVE = $(throw "Need file to upload!"), $…

powershell parameter-passing powershell-ise
How to convert pipeline to CSV format and specify UTF-8 encoding

In a Windows PowerShell script, I want to execute code which converts a pipeline to CSV format, and encoding should …

powershell powershell-2.0 powershell-ise
Get relative path of files in sub-folders from the current directory

Is there any straight-forward way (by use of cmdlets or .NET classes) to obtain only the relative path of a …

powershell powershell-2.0 powershell-ise
Powershell argument passing to function seemingly not working

I sense that I am doing something silly, but here is the issue: Function getPropertyOfFile($a, $b, $c) { $a.GetDetailsOf($…

powershell powershell-2.0 powershell-ise