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 during Exchange 2007 Install
xml image gallery scroll
FreeNAS 0.69 Accessing Drive Data on Rebuilt Server
can sql server 2000 send sms to mobile (cell) phones
How to run a batch file on a schedule no matter who is logged in.
Help with exporting data using BCP
IE7 search default with Group Policy Management
Access - Pop up form to add ndew customer
Unable to open Outlook due to "unable to open your default folders...."
Bash script to move and rename files based on a file name