Today I saw an article in Powershell.com, is about the application of the GridView, feel very good, decided to try it yourself. But the actual operation of the time has failed, and then began a long row of mistakes.
Http://powershell.com/cs/blogs/tips/archive/2012/01/13/create-own-driver-tool.aspx
650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2016/01/010516_0407_1.png "id=" exifviewer-img-1 "Style=" margin:0px;padding:0px; "/>
First we run, the error is as follows, said "state" this field already exists, what is this ghost?
650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2016/01/010516_0407_2.png "id=" Exifviewer-img-5 "style=" margin:0px;padding:0px;/>
is used.
convertfrom-csv   it will format the data as a CSV style, which is the default "," separate, but it also has a requirement, that is, cannot have the same column appear.
Let's just run it, don't process the data, and see what's going on ...
What the hell are these two "states"?
650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2016/01/010516_0407_3.png "id=" exifviewer-img-6 "Style=" margin:0px;padding:0px; "/>
Find an English version of the machine to run and see what's going on. It turns out that Microsoft has translated state and status.
650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2016/01/010516_0407_4.png "id=" Exifviewer-img-10 "style=" margin:0px;padding:0px; "/>
Here, the state should be a verb, the status is a noun, the other is a difference, but it can be translated into Chinese "status". Although translation can be used, it does not conform to the rules of PowerShell. This article was written in 2012, this year, Microsoft has not found this problem hey. (I think a translation into a state, the second translation into a situation here is more appropriate.) )
650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2016/01/010516_0407_5.png "id=" Exifviewer-img-15 "style=" margin:0px;padding:0px; "/>
650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2016/01/010516_0407_6.png "id=" exifviewer-img-2 "Style=" margin:0px;padding:0px; "/>
Since this has been done, I changed a method in the Chinese environment to execute. As follows:
Add a parameter and give him a subtitle. Of course use Out-file then import-csv also can.
driverquery.exe/v/fo CSV | Convertfrom-csv-header "module name", "Display Name", "description", "Driver Type", "Startup Mode", "status", "State S", "Accept Stop", "Accept pause", "Paged Pool (bytes)", "Code (bytes)", "BSS (bytes)", "Link Date", "path", "Init (bytes)" |select "module name", "Display Name", "description", "Driver Type", "Startup Mode", "status", "State S", "Accept Stop" | Out-gridview-title "The Master of loading and forcing"
Look at the results, the first line is not what I want, but the rest of the content OK, so the basic still completed the demand.
650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2016/01/010516_0407_7.png "id=" EXIFVIEWER-IMG-17 "style=" margin:0px;padding:0px; "/>
Microsoft Cloud Solution High-end top group "236804566" to share the achievement of cattle B road
Welcome to Sina Weibo @ Fat nine uncle
This article is from the "Nine uncle-Microsoft Private Cloud" blog, please make sure to keep this source http://jiushu.blog.51cto.com/972756/1731662
A case of PowerShell failure due to improper official translation