Posts Tagged ‘PowerShell’

Import-CSV Error : Cannot process argument because the “name” is invalid

July 23, 2013

I got this error from a CSV file that I had exported from Excel. The file was correct, Excel looked good, but there were extra columns on the right-hand side of the Excel data. I opened up Excel, deleted the extra columns, re-exported to Tab text file, and problem gone.

The underlying issue is that the Column headers are blank. Import-CSV does not like this, hence the invalid “name” notification.

HOWTO: Set your Windows Proxy Server Settings via PowerShell

December 10, 2010

The following PowerShell script will set your proxy server registry settings for Internet Explorer.

set-itemproperty -path "hkcu:Software\Microsoft\Windows\CurrentVersion\Internet Settings" -name ProxyServer -value "http=proxy-url:port;https=proxy-url:port;ftp=proxy-url:port;socks=proxy-url:port;" -type string