You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<a href='https://ko-fi.com/B0B7DDGZ7' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
28
+
</p>
29
+
26
30
# AsBuiltReport.Core
27
31
28
32
AsBuiltReport.Core is a PowerShell module which provides the core framework for generating as built documentation for many common datacentre systems. The AsBuiltReport.Core module is required by each individual report module used to generate as built documentation for a specific product and/or technology.
@@ -33,21 +37,21 @@ The following simple list of instructions will get you started with the AsBuiltR
33
37
34
38
## :floppy_disk: Supported Versions
35
39
### **PowerShell**
36
-
This report is compatible with the following PowerShell versions;
40
+
This module is compatible with the following PowerShell versions;
37
41
38
42
| Windows PowerShell 5.1 | PowerShell 7 |
39
43
|:----------------------:|:------------------:|
40
44
|:white_check_mark:|:white_check_mark:|
41
45
42
46
## :wrench: System Requirements
43
47
44
-
The following module will be automatically installed by following the [module installation](https://github.com/AsBuiltReport/AsBuiltReport.Core#package-module-installation) procedure.
48
+
The following PowerShell module will be automatically installed by following the [module installation](https://github.com/AsBuiltReport/AsBuiltReport.Core#package-module-installation) procedure.
45
49
46
-
This module may also be manually installed.
50
+
This PowerShell module may also be manually installed via the PowerShell Gallery or GitHub.
47
51
48
52
| Module Name | Minimum Required Version | PS Gallery | GitHub |
To find a list of available report modules, run the following PowerShell command;
53
57
@@ -59,19 +63,53 @@ The pre-requisites for each report type will be documented within its own `READM
59
63
60
64
## :package: Module Installation
61
65
62
-
### **PowerShell**
63
-
Open a PowerShell terminal window and install the required module as follows;
66
+
### PowerShell
67
+
#### Online Installation
68
+
69
+
For an online installation, install the `AsBuiltReport.Core` module using the [PowerShell Gallery](https://www.powershellgallery.com/packages?q=Asbuiltreport.Core);
Copy the downloaded `AsBuiltReport.Core` module folder to a location that can be made accessible to the offline system.
88
+
e.g. USB Flash Drive, Internal File Share etc.
89
+
90
+
On the offline system, open a PowerShell console window and run the following command to determine the PowerShell module path.
91
+
92
+
**Windows**
93
+
94
+
```powershell title=""
95
+
$env:PSModulePath -Split ';'
96
+
```
97
+
98
+
**macOS & Linux**
99
+
100
+
```powershell title=""
101
+
$env:PSModulePath -Split ':'
102
+
```
103
+
104
+
Copy the downloaded `AsBuiltReport.Core` module folder to a folder specified in the `$env:PSModulePath` output.
105
+
68
106
### **GitHub**
69
-
If you are unable to use the PowerShell Gallery, you can still install the module manually. Ensure you repeat the following steps for the [system requirements](https://github.com/AsBuiltReport/AsBuiltReport.Core#wrench-system-requirements) also.
107
+
If you are unable to use the PowerShell Gallery, you can still install the `AsBuiltReport.Core`module manually. Ensure you repeat the following steps for the [system requirements](https://github.com/AsBuiltReport/AsBuiltReport.Core#wrench-system-requirements) also.
70
108
71
109
1. Download the [latest release](https://github.com/AsBuiltReport/AsBuiltReport.Core/releases/latest) zip from GitHub
72
110
2. Extract the zip file
73
-
3. Copy the folder `AsBuiltReport.Core` to a path that is set in `$env:PSModulePath`. By default this could be `C:\Program Files\WindowsPowerShell\Modules` or `C:\Users\<user>\Documents\WindowsPowerShell\Modules`
74
-
4.Open a PowerShell terminal window and unblock the downloaded files with
111
+
3. Copy the folder `AsBuiltReport.Core` to a path that is set in `$env:PSModulePath`.
112
+
4.For Windows users only, open a PowerShell terminal window and unblock the downloaded files with
Creates a VMware vSphere report configuration file named 'vSphere_Report_Config.json' in the 'C:\Reports' folder.
163
202
.EXAMPLE
164
-
Creates a report JSON configuration file for Nutanix Prism Central, named 'AsBuiltReport.Nutanix.PrismCentral' in 'C:\Reports' folder, overwriting any existing file.
Creates a Nutanix Prism Element report configuration file name 'AsBuiltReport.Nutanix.PrismElement.json' in '/Users/Tim/Reports' folder and overwrites the existing file.
# Generate a VMware vSphere As Built report in HTML & Word formats. Perform a health check to highlight particular issues which exist within the Vmware vSphere environment. Save the report to the 'H:\Documents\' folder.
# Generate a Nutanix Prism Element As Built Report using specified username and password credentials. Specify the report configuration file to be used. Export report to Text, HTML & DOCX formats. Use the default report style. Save the report to the '/Users/Tim/Documents' folder. Display verbose messages to the console.
# The following creates a Pure Storage FlashArray As Built report in Text format and appends a timestamp to the filename. It also uses stored credentials to connect to the system.
# Generate a Pure Storage FlashArray As Built Report in Text format and append a timestamp to the filename. Use stored credentials for authentication. Use the default Pure Storage report style. Save the reports to the 'H:\Documents' folder.
# The following creates a VMware NSX-V As Built report in HTML format, using the configuration in the asbuilt.json file located in the C:\scripts\ folder.
- Table Of Contents (TOC) may be missing in Word formatted report
233
+
## :x: Known Issues
234
+
-**Table Of Contents (TOC) is missing in Word formatted report**
199
235
200
-
When opening the DOCX report, MS Word prompts the following
236
+
When opening a Microsoft Word (DOCX) report for the first time, you will be prompted with the following warning;
201
237
202
238
`"This document contains fields that may refer to other files. Do you want to update the fields in this document?"`
203
239
204
240
`Yes / No`
205
241
206
-
Clicking `No` will prevent the TOC fields being updated and leaving the TOC empty.
242
+
Clicking No will prevent the TOC fields from being updated, leaving the Table of Contents empty.
243
+
244
+
Always reply Yes to this message when prompted by Microsoft Word to ensure the Table of Contents is updated.
245
+
246
+
Save the document to prevent future prompts when opening the document.
247
+
248
+
-**Images are missing from reports generated using Linux or macOS**
207
249
208
-
Always reply `Yes`to this message when prompted by MS Word.
250
+
Unfortunately due to [breaking changes](https://learn.microsoft.com/en-gb/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only) in .NET 6, images are no longer supported for reports generated using Linux or macOS.
0 commit comments