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
Error message trying to connect to Sybase server ASE 12.0
Tilted angled text in GIMP or Paint Shop Pro?
Assigning value from a query onClick radiobutton
Windowing
How large can an Outlook.PST and Archive.PST file be?
XLP to XLS file conversion
Exit Script
Trying to insert Column from combo box to table
What to use to create an airfield parking spot sheet?
Spooler Service 1053 error