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
Excel Julian Date
Unable to format cells in Excel 2004
Dreamweaver Templates v SSI files for best SEO results
EXCEL AUTO INVOICE NUMBER GENERATOR
Error in Windows XP
Ghost 14, unmounted drive and unassigned drive letter
RtvScan.exe high cpu
help, using a gif of flame that follows cursor to burn off page?
Outlook 2003 exchange duplicate calendar issue
Slow access to a network drive