Hello kind people! Some help would be greatly appreciated for a PS enthusiast and an absolute beginner.
I am trying to set a bunch of string values/computernames which I imported from a csv file.
I used this command to have strings:
“import-csv -path c:\csvfile.csv | select-object computername -expandproperty computrername”
Know I wolud like to feed that to “Set-Item wsman:\localhost\Client\TrustedHosts -Value” all at once so I can PSRemote to these machines in a workgroup environment which I trust.
I can’t seem to accomplish this.
Accept pipeline input? true (ByValue, ByPropertyName)”
I can’t figure it out how to do it. Please advise.