-----provide ad\exchange\lync\sharepoint\crm\sc\o365 and other Microsoft product implementation and outsourcing, qq:185426445. Phone 18666943750
Requirements: Sometimes we need to compare the CSV file report automatically acquired daily by the PowerShell program to determine what happens every day, as follows: We compare the column "Computer name" of the automatically generated CSV file before and after two days.
The script is as follows:
Diff-referenceobject (import-csv \ c \ Statistics Computer assets \2016-11-26.csv-encoding default |select-expandproperty computer name) '-diff ( IMPORT-CSV \ c \ Statistics Computer assets \2016-11-27.csv-encoding default |select-expandproperty computer name)
Or is:
diff (import-csv \ c \ statistics computer Asset \2016-11-25.csv-encoding default |select-expandproperty computer name) ' (Import-csv c \ n statistics computer assets \ 2016-11-27.csv-encoding default |select-expandproperty computer name)
The results are as follows:
650) this.width=650; "Width=" 501 "height=" 344 "title=" QQ picture 20161127123657.png "style=" WIDTH:725PX;HEIGHT:429PX; "alt= "Wkiom1g6ywdjih3naaeauqqnw8e998.png-wh_50" src= "http://s5.51cto.com/wyfs02/M02/8A/BF/ Wkiom1g6ywdjih3naaeauqqnw8e998.png-wh_500x0-wm_3-wmp_4-s_1193341870.png "/>
This article is from the "Zhou Ping Microsoft Technology Exchange Platform" blog, please be sure to keep this source http://yuntcloud.blog.51cto.com/1173839/1877008
PowerShell Management Series (37) PowerShell operations in the statistical domain of computer hardware assets