powershell-ise Questions
2
Solved
When I run a below command to list log by ID, it says Get-WinEvent : No events were found that match the specified selection criteria.
How can I catch this exception and display a simple message s...
Groenendael asked 31/10, 2014 at 17:12
5
Solved
I suddenly started to recceive this warning when running any script on my computer:
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially ha...
Solitaire asked 26/7, 2016 at 8:11
6
Solved
Having failed to get PowerGUI to work properly I've fallen back on PowerShell ISE. However if I run this as Administrator it won't let me set any breakpoints.
If I launch as normal (my login is a ...
Hungarian asked 6/12, 2010 at 16:28
3
Solved
Hi I'm struggling mightily with the following - suppose I have the following directory structure C:\Temp\Test1 and C:\Temp\Test2
What I'd like to do is recursively copy the child-contents of C:\Te...
Gurnard asked 19/7, 2012 at 16:11
4
Solved
Hi I'm noticing some odd behavior with the following code snippet
function test
{
$LASTEXITCODE = $null
ping asdfs
Write-Host "Last exitcode: $LASTEXITCODE"
}
test
Write-Host "Last exitcode: $...
Gherkin asked 8/6, 2012 at 5:36
6
Solved
I am running a script that has multiple environments in it that can be selected from a window that pops up. the only problem I have run into is when I want to set up the script to copy from a sourc...
Kinzer asked 10/7, 2014 at 14:57
5
Solved
I want to read a file line by line in PowerShell. Specifically, I want to loop through the file, store each line in a variable in the loop, and do some processing on the line.
I know the Bash equi...
Koy asked 4/11, 2015 at 0:37
13
I am writing a PowerShell script to create several directories if they do not exist.
The filesystem looks similar to this
D:\
D:\TopDirec\SubDirec\Project1\Revision1\Reports\
D:\TopDirec\SubDirec...
Roadside asked 3/6, 2013 at 21:30
6
Solved
See Title.
I specified needed parameters in the head of a script:
param ($G_ARCHIVE = $(throw "Need file to upload!"),
$G_LOGFILE = $(throw "Need logfile!"))
When I want to debug the script wi...
Sterling asked 14/1, 2011 at 10:3
2
Solved
I have script watching file creation in a specific directory.
I'm using Register-ObjectEvent after creating a System.IO.FileSystemWatcher,
It works great, but if I set a break point in the -Action...
Duthie asked 14/8, 2012 at 19:51
2
Solved
Is there any straight-forward way (by use of cmdlets or .NET classes) to obtain only the relative path of a file in a sub-folder from a given path?
eg current folder is C:\MyScript and there is a ...
Unroot asked 10/6, 2012 at 21:45
3
Solved
I'm new to PowerShell.
I'm trying to automate the deployment of dll components from a folder on a source server to multiple folders on the destination server. This seems like it should be simple e...
Foreconscious asked 8/4, 2014 at 14:17
5
Solved
I have recently installed PowerShell 6.2.
If I start a PowerShell 6 (x64) command prompt and run $PSVersionTable.PSVersion this is the result
Major Minor Patch PreReleaseLabel BuildLabel
----- --...
Toratorah asked 17/4, 2019 at 16:21
5
I have the following PowerShell script. It picks up the NetBIOS name of computers within a given IP address. I'm using a pipe so as to dump the results into a text file. The problem is that if an I...
Donovan asked 8/6, 2015 at 13:2
4
I Tried Using How to Change name of the NetConnectionProfile Using Set-NetConnectionProfile
$Profile=Get-NetConnectionProfile -InterfaceIndex 35
$Profile.Name = "Network1"
The Error is
"Name...
Tricky asked 11/6, 2013 at 18:27
8
Solved
I need to only search the 1st line and last line in a text file to find a "-" and remove it.
How can I do it?
I tried select-string, but I don't know to find the 1st and last line and only remove ...
Neusatz asked 18/1, 2013 at 15:52
3
Solved
I'd like to start using a custom extension for some of my Powershell scripts, but when I drag them into the PowerShell ISE, they are treated as plaintext, and I don't get any syntax highlighting. I...
Kristofor asked 26/5, 2011 at 17:38
0
I've started using PowerShell.
The tab size is 8 spaces.
I don't want that - I want 4 spaces.
How do I achieve this please?
Tareyn asked 7/11, 2019 at 11:21
2
I have a InternetExplorer.Application
I am creating an automation
and one of the pages I opened,
opened a dialog that looks like a new tab, but on the same process (I checked it by the task manag...
Ritz asked 6/1, 2016 at 19:39
6
Solved
If I have an instance of PowerShell ISE running and I install something that modifies the PATH or I modify it in any way outside of PowerShell then I need to restart PowerShell for it to see the up...
Ruelas asked 22/7, 2013 at 18:14
4
Solved
In PowerShell, git checkout runs without any error message. In the ISE, while git checkout stills works, the ISE gives an error message.
> git checkout master
Your branch is ahead of 'origin/ma...
Highly asked 11/11, 2014 at 18:47
3
Is it possible to make Powershell ISE behave like vim with some vim-like editing mode or plugin?
In netbeans I'm using jVi, and in Visual Studio I'm using VsVim, is there something similar for Po...
Tabanid asked 21/1, 2015 at 12:44
4
Solved
Debugging and testing multiline commands in Powershell ISE has been bugging me for years. I like having multiple line commands because they are easy to read, but they make things harder to debug. A...
Lacker asked 2/1, 2019 at 14:15
5
Solved
I am new to powershell, and trying to teach myself the basics. I need to write a ps script to parse a file, which has not been too difficult.
Now I want to change it to pass a variable to the scri...
Othelia asked 7/5, 2013 at 19:6
2
Solved
I've ran into a few cases where powershell ISE will freeze when you try to kill a process with Ctrl+C. I can still move my cursor around the console but the status is stuck on "Stopping".
This has...
Firing asked 15/8, 2013 at 20:23
1 Next >
© 2022 - 2024 — McMap. All rights reserved.