Академический Документы
Профессиональный Документы
Культура Документы
The ps1 files contains all the logic and functions used. The .csv files contains
the content being used.
So what is required?
� PowerShell 2.0 or higher
� The machine collecting information requires the Active PowerShell modules
� The Document generation machine �if different requires� Word 2007 or higher.
� Your script Execution policy might be required to be changed using Set-
ExecutionPolicy
WMIContent.xml
This objects contains 9 properties
1. Index - Index provides the order in which data will be collected and written
to the document
2. Class - This section contains the WMI query for the Class you want to collect
data from. For example �Select * from win32_Bios�. If you only want to add text and
execute no function indicate it with �[]� as empty
3. Property � This field indicates the properties you want to select from the
class.
4. Heading � Contains the text at the top of the paragraph or section
5. TextPara - This is the text that will be in the paragraph section above the
tables with collected information
6. HeadingFormat - This is the formatting in word for the heading. For
Example �Heading 1, Heading 2, Heading 3�
7. HeaderDirection � This is the direction of the Table Headers in word. Options
available is
�0� � Horizontal
�1� � From top Down
�2� � From bottom up
8. HeaderHeight � This is the height of the header column of the Table
9. Export - The filename to which the data should be export. This is a mandatory
field where code executed.