Microsoft
Software
Hardware
Network
Question : Powershell foreach-object, supply values for the following parameters
I am trying to run this command:
Import-Csv $sourceMachinesList | ForEach-Object
{
# some code
}
I get no error messages, but I do get this message asking for a parameter
"cmdlet ForEach-Object at command pipeline position 2
Supply values for the following parameters:
Process[0]:"
Answer : Powershell foreach-object, supply values for the following parameters
btw... if you want to keep your orginal format you can escape the EOL like this
Import-Csv $sourceMachinesList | ForEach-Object `
{
# some code
}
Random Solutions
Fade in/out, side-to-side movement and scaling of images in rotating photo gallery using Actionscript
Word Save As - Default to Template info?
Incorrect syntax for INSERT using INNER JOIN
How to stop relaying on rcpt to level
Windows Vista - I have to continually install Adobe Flash Player when on the internet
mmc could not create the snap-in (adsiedit.msc)
Format string (numeric) to have commas
how to open a port on cisco 1700
WINSTLE Error creating Office 07 msi ODSERV.exe not found
mod_rewrite case insensitive directories