This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$today = get-date -Format "MM/dd/yyyy" | |
$header = @" | |
<style> | |
h1 { | |
font-family: Arial, Helvetica, sans-serif; | |
color: #e68a00; | |
font-size: 28px; | |
} | |
h2 { | |
font-family: Arial, Helvetica, sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$MyInstances = Get-DbaRegServer -SqlInstance cmsserver -Group "SDLC" | Sort-Object Name | |
$today = get-date -Format "dd MMM yyyy" | |
$style = " | |
<style> | |
TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse} | |
TH{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color:rgb(255, 255, 255);font-size:16;color:black} | |
TD{border-width: 1px;padding: 5px;border-style: solid;border-color: black;color:black;font-size:14} | |
</style> | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Command # Retrieves a list of all the commands available to PowerShell | |
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
Get-Help # Get all help topics | |
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command | |
################################################### | |
# Flow Control Statements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ($sqlServer,$path,[switch]$scriptPerPublication) | |
Import-Module Repl | |
if ($sqlServer -eq "") | |
{ | |
$sqlserver = Read-Host -Prompt "Please provide a value for -sqlServer" | |
} | |
if ($path -eq "") | |
{ |