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 Get-Acl to Set-Acl system date variable and output to file
Attach DB from storage drive
A program or firewall is not compatible with Windows Vista - wscript.exe
XP Pro reinstall - NTFS Format Crawling. Why???
Macrovision Setup will not run proprly
Access Denyed with Squid
Allowing access to MSconfig with user still as a Power User
Birthday reminders
Event ID 1173 MSExchangeIS Mailbox Error 0x6bb deleting unused restricted view from folder
Adobe Acrobat freezes when opening documents with tickmarks