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
function Convert-FolderContentToMarkdownTableOfContents{ | |
<# | |
.SYNOPSIS | |
Create a Table of Contents in markdown | |
.DESCRIPTION | |
This function can be used to generate a markdown file that contains a Table of Contents based on the contents of a folder | |
.PARAMETER BaseFolder | |
It’s the folder’s location on the disk | |
.PARAMETER BaseURL | |
to build the URL for each file. This will be added as a link |
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
function New-OutlookEmail { | |
<# | |
.SYNOPSIS | |
Will open a new Outlook email item and set some properties. | |
.DESCRIPTION | |
Will open a new Outlook email item and set some properties. | |
Email will be sign and encrypted. | |
Will keep the default signature. | |
Email will not be sent! |
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
#Vars | |
$srcInstance = "localhost" | |
$destInstance = "localhost" | |
$srcDatabase = "db1" | |
$destDatabase = "db2" | |
# Will create SMO instance object that we will use to run script out the definition of the objects | |
$sqlSrcInst = Connect-DbaInstance $srcInstance | |
# Will create SMO instance object that we will use later to run the scripts on the destination database |