PSWriteHTML
dbatools
Our great sponsors
PSWriteHTML | dbatools | |
---|---|---|
24 | 5 | |
768 | 2,326 | |
1.7% | 1.0% | |
9.1 | 9.2 | |
2 months ago | 6 days ago | |
PowerShell | PowerShell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PSWriteHTML
- Windows Server Report
- Non-SysAdmin Use Cases for PowerShell? Basically, any use cases NOT involving network, RDP, system config, IT/LAN admin type stuff?
- Tools or script to gather data to a central location
-
Powershell & MSWord: Pulling AD Information and making it look “nice”?
There are some cool PowerShell HTML modules, run Install-Module PSWriteHtml and go to town. Check our their list of articles (just scroll down a little in the ReadMe) for a really easy way to get started: https://github.com/EvotecIT/PSWriteHTML
-
Powershell dynamic HTML table
Import-module Import-Module PSWriteHTML Gathering Data $results = [pscustomobject] @{ 'Source DC' = "Myserv.HostName.ToUpper()" 'Partner DC' = "N/A" Direction = "N/A" Type = "N/A" 'Last Attempt' = "N/A" 'Last Success' = "N/A" 'Last Result' = "1" } # Prepare to export in a beautiful HTML file $ReportPath = "$PSScriptRoot\DHCPReport-At-$(Get-Date -f "dd-MM-yyyy").html" # Optional settings : set default values for some cmdlets (I'm lazy) $PSDefaultParameterValues = @{ "New-HTMLSection:HeaderBackGroundColor" = "Green" "New-HTMLSection:CanCollapse" = $true } New-HTML -FilePath $ReportPath -Online -ShowHTML { # First Tab New-HTMLTab -Name 'DC Health Report' { New-HTMLSection -HeaderText "Replication Status" { # Here, we're putting all Data previously gathered in the var $Result New-HTMLTable -DataTable $results { New-TableCondition -Name "Last Result" -Operator ne -Value "N/A" -BackgroundColor red -Color white -Alignment center New-TableContent -Alignment center } #end-newHtmlTable } # end New-htmlSection # In the same Tab, you could add another section (of course in my case, this section is empty New-HTMLSection -HeaderText "Replication Status2" { # Here, we're putting all Data previously gathered in the var $Result2 New-HTMLTable -DataTable $results2 { New-TableCondition -Name "Last Result" -Operator ne -Value "N/A" -BackgroundColor red -Color white -Alignment center New-TableContent -Alignment center } #end-newHtmlTable } # end New-htmlSection } # end New-HtmlTab # But you could add some other tabs New-HTMLTab -Name 'DC Health Report2' { New-HTMLText -FontSize 16 -Color blue -Text @( "This is a text with a lion to [PSWriteHTML Github site](https://github.com/EvotecIT/PSWriteHTML)." "This is not really difficult" ) } # end New-HtmlTab } # end-New-html
- Need help with HTML report
- Change cell color in HTML table based on value or IF statements
- Filling Colour in specific row HTML table in email
-
using HTML with Powershell to set colours for data
Have you consider to use the wonderful PS module called PSWriteHtml (available also on PSGallery of course) ?
-
Changing color of certificates which will expire in next 90 days from the complete list.
To build on this there is a nice powershell module for HTML noobs called PSWriteHTML
dbatools
- Python vs Powershell on *nix Systems
- Große SQL Datenbank umziehen
-
Github pipelines/actions for .net build/deployment workflow?
dbatools (for deploying database changes)
- Looking for public powershell projects to learn best practices and as a reference
-
VS Code Syntax Highlighting
It's very rare I open files that big, but just for fun I took the 1k lines here: https://github.com/sqlcollaborative/dbatools/blob/development/dbatools.psm1 copied and pasted the code 37 times into a .ps1 file and opened it in ISE. ISE opened and highlighted it in like 1-2 seconds so the PS parser is clearly able to parse things quick enough for it to not matter.
What are some alternatives?
Dashimo - Dashimo is very simple, intuitive PowerShell generated HTML file. That's right. A single, static HTML file that you can send to email or host on a website.
ansible.windows - Windows core collection for Ansible
Front-End-Web-Development-Resources - This repository contains content which will be helpful in your journey as a front-end Web Developer
aws-tools-for-powershell - The AWS Tools for PowerShell lets developers and administrators manage their AWS services from the PowerShell scripting environment.
ImportExcel - PowerShell module to import/export Excel spreadsheets, without Excel
SqlServerDsc - This module contains DSC resources for deployment and configuration of Microsoft SQL Server.
Testimo - Testimo is a PowerShell module for running health checks for Active Directory against a bunch of different tests
vscode-powershell - Provides PowerShell language and debugging support for Visual Studio Code
curriculum - The open curriculum for learning web development
PowerShellForGitHub - Microsoft PowerShell wrapper for GitHub API
website - Syntax Podcast Website
PSWritePDF - PowerShell Module to create, edit, split, merge PDF files on Windows / Linux and MacOS