All Questions
74 questions
0
votes
1
answer
78
views
Parsing a multi-line YML array into a loop
I've been scouring the web to help point me in the right direction but to no avail.
I'm trying to take multi-line array from one YML file and parse the values into a different ansible playbook:
...
0
votes
1
answer
43
views
Powershell script: I have a CSV that I get with a list of emails, Manager emails. I want to turn that into an outlook email script that emails each
I want to be able to loop through each email on the CSV under the User column and send an email to each user + manager separately. So it should be Manager + User on 1 email for each new column.
Clear-...
0
votes
0
answers
33
views
The member "0" is already present [duplicate]
I have a powershell code that reads in a file and for every record it processes it executes a "piconfig" utility command with the record as part of that commmand. However it stops running ...
0
votes
2
answers
40
views
How to reference a CSV column by a name which includes spaces and other punctuation?
Working with Google Contacts as CSV and looking to ensure that the e-mail value is lower case, the default name for the e-mail address column is "E-Mail 1 - Value" and so looking to iterate ...
0
votes
2
answers
83
views
Loop and Array of Arrays in powershell
I was hoping someone could help me. I am new to powershell and struggling with trying to find the right way to approach something in my script. The script is to do a restore check on our backups using ...
0
votes
1
answer
87
views
error while modifying pom.xml file using PowerShell
I want to modify some Text value in <module>features/com.bw.rest.runtime.feature</module> to <module>features/com.bw.rest.runtime.feature.eclipse</module>. I am unable to ...
0
votes
2
answers
673
views
in PowerShell how do I Loop through CSV file and create a summary hashtable based on key value in csv
firstly, thanks for any help in advance, and secondly I'm new to PowerShell, so am playing around with it, and probably off on the wrong track ;)
I have a CSV file that i am reading the contents of, ...
0
votes
1
answer
221
views
Powershell: I am trying to create an array from looping and put it into variable
Here my example code:
$old = @("a_1","b_2","c_3","d_4","e_5")
foreach ($f in $old)
{
$spl = "$f".Split("_")
$spl[0]
}
Output is ...
1
vote
3
answers
89
views
How to update XML with reading it only once with PowerShell?
Can someone please help me to do the following more efficiently? I am running this code 4 times for updating specific below protocols/file types. I would like to do it in a loop or other ways to make ...
1
vote
1
answer
71
views
Moving files to a new directory not found in array
Im looking for advice on the following. How can I implement where if a file exists other than what is being called for below ('02', '13' ect) be moved to an "ect" folder? For example.. All ...
0
votes
1
answer
219
views
Confused with Powershell script get-content
Ask user to enter a name, Search name in the names array person.dat file. If the name is found print a table, If the name is not found, print an error message and ask user for another name.
persons....
0
votes
0
answers
91
views
Powershell set length of empty array
I want to fill the array with gussed correct letters from the solution $Solution but everytime comes the error
"Index was outside the bounds of the array"
($arrayOutput).length=$...
1
vote
2
answers
322
views
Powershell arrayslicing Get-PSReadLine
trying to array slice the get-psreadlineoption command. I want to select all strings containing the word 'Color' and then input those to 'set-psreadline' to set all colors. I do not understand how ...
0
votes
1
answer
194
views
Trying to Use a ForEach Loop to get a product version off of an .exe, then based on that version, execute a batch of functions
Thanks in advance for taking a look. I just wanted to see what someone else might do to get this working correctly. Very new to PowerShell and Python, so I am just trying to live in it right now as I ...
3
votes
2
answers
374
views
Purpose of @ in Looping Arrays?
I'm currently learning PowerShell, starting with the basics, and I've gotten to arrays. More specifically, looping arrays. I noticed that when declaring an array by itself, it's just simply written as
...