Skip to content

Commit f3c3490

Browse files
committed
v1.3.0 release
## [1.3.0] - 2022-10-22 ### Added - Added two sample style scripts ### Changed - Updated `RequiredModules` for PScribo 0.10.0 - Updated installation instructions in `README.md` - Updated `CONTRIBUTING.md` - Updated PSScriptAnalyzer settings - Updated Pull Request and Bug Report templates - Updated comment based help - Improved functionality for PowerShell 7
1 parent 5cd14a0 commit f3c3490

File tree

11 files changed

+507
-293
lines changed

11 files changed

+507
-293
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If applicable, add screenshots to help explain your problem.
2222

2323
**System (please provide the following information about the system from which you are trying to generate a report):**
2424
- OS: [e.g. Windows 10]
25-
- Windows PowerShell version [Provide output from the following command: `$PSVersionTable.PSVersion`]
25+
- PowerShell version [Provide output from the following command: `$PSVersionTable.PSVersion`]
2626
- Vendor PowerShell Module name and version [e.g. VMware PowerCLI 11.2]
2727
- AsBuiltReport.Core module version [e.g. 1.0.0]
2828
- AsBuiltReport module name and version [e.g. AsBuiltReport.VMware.vSphere 1.0.0]

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
- [ ] My code follows the code style of this project.
3232
- [ ] My change requires a change to the documentation.
3333
- [ ] I have updated the documentation accordingly.
34-
- [ ] I have read the [**CONTRIBUTING**](/CONTRIBUTING.md) document.
34+
- [ ] I have read the [**CONTRIBUTING**](https://www.asbuiltreport.com/about/contributing/) page.

AsBuiltReport.Core.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Version number of this module.
1515

16-
ModuleVersion = '1.2.1'
16+
ModuleVersion = '1.3.0'
1717

1818
# Supported PSEditions
1919
# CompatiblePSEditions = 'Desktop'
@@ -34,7 +34,7 @@
3434
Description = 'A PowerShell module which provides the core framework for generating As-Built documentation for many common datacentre systems.'
3535

3636
# Minimum version of the Windows PowerShell engine required by this module
37-
PowerShellVersion = '5.1'
37+
# PowerShellVersion = '5.1'
3838

3939
# Name of the Windows PowerShell host required by this module
4040
# PowerShellHostName = ''

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# :arrows_clockwise: AsBuiltReport.Core Changelog
22

3-
## [1.2.1] - 2022-06-30
3+
## [1.3.0] - 2022-10-22
4+
5+
### Added
6+
- Added two sample style scripts
47
### Changed
58
- Updated `RequiredModules` for PScribo 0.10.0
9+
- Updated installation instructions in `README.md`
10+
- Updated `CONTRIBUTING.md`
611
- Updated PSScriptAnalyzer settings
12+
- Updated Pull Request and Bug Report templates
13+
- Updated comment based help
14+
- Improved functionality for PowerShell 7
715

816
## [1.2.0] - 2022-02-11
917
### Added

CONTRIBUTING.md

Lines changed: 90 additions & 185 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 61 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ This report is compatible with the following PowerShell versions;
4545

4646
## :wrench: System Requirements
4747

48-
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.
4949

50-
This module may also be manually installed.
50+
This PowerShell module may also be manually installed via GitHub.
5151

5252
| Module Name | Minimum Required Version | PS Gallery | GitHub |
5353
|--------------------|:------------------------:|:---------------------------------------------------------------------:|:---------------------------------------------------------------------------:|
@@ -63,19 +63,53 @@ The pre-requisites for each report type will be documented within its own `READM
6363

6464
## :package: Module Installation
6565

66-
### **PowerShell**
67-
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);
70+
6871
```powershell
69-
install-module AsBuiltReport.Core
72+
# Install AsBuiltReport module
73+
Install-Module -Name 'AsBuiltReport.Core' -Repository 'PSGallery' -Scope 'CurrentUser'
74+
```
75+
76+
#### Offline Installation
77+
78+
For an offline installation, perform the following steps from a machine with internet connectivity;
79+
80+
Save the required `AsBuiltReport.Core` module to a specified folder.
81+
82+
```powershell
83+
# Save AsBuiltReport.Core module
84+
Save-Module -Name 'AsBuiltReport.Core' -Repository 'PSGallery' -Path '<Folder Path>'
85+
```
86+
87+
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 ':'
70102
```
71103

104+
Copy the downloaded `AsBuiltReport.Core` module folder to a folder specified in the `$env:PSModulePath` output.
105+
72106
### **GitHub**
73-
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.
74108

75109
1. Download the [latest release](https://github.com/AsBuiltReport/AsBuiltReport.Core/releases/latest) zip from GitHub
76110
2. Extract the zip file
77-
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`
78-
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
79113
```powershell
80114
$path = (Get-Module -Name AsBuiltReport.Core -ListAvailable).ModuleBase; Unblock-File -Path $path\*.psd1; Unblock-File -Path $path\Src\Public\*.ps1
81115
```
@@ -162,11 +196,13 @@ The `New-AsBuiltReportConfig` cmdlet is used to create JSON configuration files
162196
.PARAMETER Force
163197
Specifies to overwrite any existing report JSON configuration file
164198
.EXAMPLE
165-
Creates a report JSON configuration file for VMware vSphere, named 'vSphere_Report_Config' in 'C:\Reports' folder.
166199
New-AsBuiltReportConfig -Report VMware.vSphere -FolderPath 'C:\Reports' -Filename 'vSphere_Report_Config'
200+
201+
Creates a VMware vSphere report configuration file named 'vSphere_Report_Config.json' in the 'C:\Reports' folder.
167202
.EXAMPLE
168-
Creates a report JSON configuration file for Nutanix Prism Central, named 'AsBuiltReport.Nutanix.PrismCentral' in 'C:\Reports' folder, overwriting any existing file.
169-
New-AsBuiltReportConfig -Report Nutanix.PrismCentral -FolderPath 'C:\Reports' -Force
203+
New-AsBuiltReportConfig -Report Nutanix.PrismElement -FolderPath '/Users/Tim/Reports' -Force
204+
205+
Creates a Nutanix Prism Element report configuration file name 'AsBuiltReport.Nutanix.PrismElement.json' in '/Users/Tim/Reports' folder and overwrites the existing file.
170206
```
171207

172208
```powershell
@@ -177,36 +213,34 @@ Get-Help New-AsBuiltReportConfig -Full
177213
Here are some examples to get you going.
178214

179215
```powershell
180-
# The following creates a VMware vSphere As Built report in HTML & Word formats.
181-
# The document will highlight particular issues which exist within the environment by including the Healthchecks switch.
182-
PS C:\>New-AsBuiltReport -Report VMware.vSphere -Target 192.168.1.100 -Username admin -Password admin -Format HTML,Word -EnableHealthCheck -OutputFolderPath 'H:\Documents\'
216+
# 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.
217+
New-AsBuiltReport -Report 'VMware.vSphere' -Target '192.168.1.100' -Username 'admin' -Password 'admin' -Format HTML,Word -EnableHealthCheck -OutputFolderPath 'H:\Documents\'
183218
184-
# The following creates a VMware vSphere As Built report in HTML & Word formats, while displaying Verbose messages to the console
185-
PS C:\>New-AsBuiltReport -Report VMware.vSphere -Target 192.168.1.100 -Username admin -Password admin -Format HTML,Word -OutputFolderPath 'H:\Documents\' -Verbose
219+
# 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.
220+
New-AsBuiltReport -Report 'Nutanix.PrismElement' -Target 'prism.nutanix.local' -Username 'demo' -Password 'demo' -Format Text,Html,Word -OutputFolderPath '/Users/Tim/Documents' -ReportConfigFilePath '/Users/Tim/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement.json' -Verbose
186221
187-
# 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.
188-
PS C:\>$Creds = Get-Credential
189-
PS C:\>New-AsBuiltReport -Report PureStorage.FlashArray -Target 192.168.1.100 -Credential $Creds -Format Text -Timestamp -OutputFolderPath 'H:\Documents\'
222+
# 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.
223+
$Credentials = Get-Credential
224+
New-AsBuiltReport -Report 'PureStorage.FlashArray' -Target '192.168.1.100' -Credential $Credentials -Format Text -Timestamp -OutputFolderPath 'H:\Documents\'
190225
191226
# The following creates a Cisco UCS Manager As Built report in default format (Word) with a customised style.
192-
PS C:\>New-AsBuiltReport -Report Cisco.UCSManager -Target 192.168.1.100 -Username admin -Password admin -StyleFilePath 'C:\scripts\ACME.ps1' -OutputFolderPath 'H:\Documents\'
193-
194-
# 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.
195-
PS C:\>New-AsBuiltReport -Report VMware.NSXv -Target 192.168.1.100 -Username admin -Password admin -Format HTML -AsBuiltConfigFilePath 'C:\scripts\asbuilt.json' -OutputFolderPath 'H:\Documents\'
227+
PS C:\>New-AsBuiltReport -Report 'Cisco.UCSManager' -Target '192.168.1.100' -Username 'admin' -Password 'admin' -StyleFilePath 'C:\scripts\ACME.ps1' -OutputFolderPath 'H:\Documents\'
196228
197229
# The following creates a Nutanix Prism Element As Built report in HTML format, with a custom filename.
198-
PS C:\>New-AsBuiltReport -Report VMware.NSXv -Target 192.168.1.100 -Username admin -Password admin -Format HTML -AsBuiltConfigFilePath 'C:\scripts\asbuilt.json' -OutputFolderPath 'H:\Documents\' -Filename 'My Nutanix Configuration'
230+
PS C:\>New-AsBuiltReport -Report 'Nutanix.PrismElement' -Target '192.168.1.100' -Username 'admin' -Password 'admin' -Format HTML -AsBuiltConfigFilePath 'C:\scripts\asbuilt.json' -OutputFolderPath 'H:\Documents\' -Filename 'My Nutanix Configuration'
199231
```
200232

201233
## :pencil: Notes
202234
- Table Of Contents (TOC) may be missing in Word formatted report
203235

204-
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;
205237

206238
`"This document contains fields that may refer to other files. Do you want to update the fields in this document?"`
207239

208240
`Yes / No`
209241

210-
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.
211245

212-
Always reply `Yes` to this message when prompted by MS Word.
246+
Save the document to prevent future prompts when opening the document.

Samples/AsBuiltReport.Sample.Style-1.ps1

Lines changed: 126 additions & 0 deletions
Large diffs are not rendered by default.

Samples/AsBuiltReport.Sample.Style-2.ps1

Lines changed: 120 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)