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
PowerShell in Windows 7 - HowTo Add-Computer to specific OU?
Recent Places shows no folders in Vista Ultimate 32
I need someone to walk me through getting Windows Media Player working with whatever codecs and/or other ancilliary files.
VBA: Automatically ByPass the Username/Password "ODBC for Oracle Connect" dialog box - not manually
The Citrix Metaframe you selected is not accepting connections.
Paypal, country codes/names, state/provence codes/names
Cfouput distinct items for a field
Unresolved external symbol error
SMTP-auth via telnet
How to stop Outlook from Archiving