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

Not able to pick lastest created date folder in all cases

I am having multiple vertical folders and in each vertical folder there are multiple builds, I want to pick latest build files for each vertical. Picking build number according to configs pattern. Below piece of code is working correctly in for…
GarRock
  • 23
  • 1
  • 6
0
votes
2 answers

PowerShell Export-CSV to dropbox/online

I am doing some tests and trying trying to export-csv the information to dropbox, i can do it via my desktop dropbox, but i need to do it via the web address. Does anyone know how to do it. I need to do it via web address and not via dropbox on…
0
votes
3 answers

Powershell ISE - Variable not interpreted

I am experimenting with the following script in Powershell ISE, but this returns an error when executed. $computerName = Read-Host "Enter name of remote computer" psexec \\"$computerName" cmd The Read-Host part works fine, but when it moves to the…
Anth0
  • 59
  • 1
  • 9
0
votes
1 answer

PowerShell master script to execute functions

I have a.ps1file which houses 4 functions. I am not sure how to call the functions or have that script run. I need all the 4 functions to run one after the other and i believe i have tried every possible way to execute that powershell file, but…
Faiz Saiyed
  • 299
  • 1
  • 4
  • 14
0
votes
2 answers

How to copy file from latest directory, but if it doesn't exist check the next latest directory

Would like some help with this. I'm a total beginner. Example: c:\folder a\folder b3\folder c\ c:\folder a\folder b2\folder c\file.txt c:\folder a\folder b1\folder c\file.txt Procedure: check for file.txt in "...folder b3\folder c\" -> file…
Jamie
  • 3
  • 1
  • 4
0
votes
2 answers

How to copy xml file contents from one xml file to another xml file using Powershell

From below web.config file I want to copy the contents to another config file: ... ...
Praveen
  • 71
  • 2
  • 9
0
votes
3 answers

Email Errors with Powershell

I have a PowerShell script that looks for a file in a folder and moves it to another folder, and renames the file with a date extension. Like this: $a = "\\server\Users\Desktop\why agile.docx" $f = "\\server\Users\desktop\Archive\why…
BIReportGuy
  • 799
  • 3
  • 13
  • 36
0
votes
1 answer

Pre-fill powershell parameters with modify option

I have a powershell script such as this : [CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$age="8" ) process { Write-Host "Your age is $age" } How can I modify this script so that the shell asks me for age and puts 8…
0
votes
2 answers

Powershell LinkClicked event for a RichTextBox

Im using windows Windows.Forms.RichTextBox to redirect my powershell script output "$var". Detect.Urls is already enabled and working, but unable to open them by clicking. Can any one help me with the code for link click event handler in powershell…
0
votes
1 answer

Powershell code error

The below is my code. I want to get the number of rows present in some of the text files separately. $myobject =Get-ChildItem C:\Powershell\Deepak -Recurse|select name,fullname|Where-Object name -in txt1.txt,txt2.txt,txt5.txt,txt9.txt|Select…
user2181349
  • 65
  • 2
  • 9
0
votes
1 answer

Running SSIS Execute Process Task using Powershell ISE

I am trying to run an SSIS package via PowerShell ISE Executable: C:\Windows\System32\WindowsPowershell\v1.0\PowerShell.exe Arguments: N:\PowerShell\Move-Item.ps1 But the problem is the Arguments files is in the network drive which has no SSIS. My…
0
votes
1 answer

Powershell Function to autocomplete and change directory

I have the following Powershell function to set a directory, nice and simple. When i type dev, auto complete works for the items inside the directory.. Example: dev ./project However when pressing enter, the directory changes to the set-location…
Lee
  • 5,816
  • 6
  • 45
  • 61
0
votes
2 answers

Create Active Directory users with certain attributes in a script

I'm working on a PowerShell script to make it easier to create Active Directory users including some attributes. For now I need to process the "Manager" field. We have 4 departments, 4 managers. I want to create this using logic like "if department…
0
votes
2 answers

Is "Del" a reserved keyword in Powershell?

I am calling the "Del" function in Main and was asking me to delete the folder. When I renamed to "Delete" it works fine as I expected. Just wondering if the "Del" is a reserved keyword in PS. Codes: function Main { #Delete the entire folder…
Jason
  • 1,680
  • 3
  • 13
  • 16
0
votes
2 answers

Powershell ISE to Notepad++

I've started using notepad++ to write powershell scripts but the colour syntax is not very intuitive, I've also been using Powershell ISE this whole time and I've gotten used to its colour theme. Is there a way to import the Powershell ISE language…
Zee Daim
  • 1
  • 1
  • 1
  • 1