commands

^

Get-DbaRandomizedDatasetTemplate

Author Sander Stad (@sqlstad, sqlstad.nl)
Availability Windows, Linux, macOS

 

Want to see the source code for this command? Check out Get-DbaRandomizedDatasetTemplate on GitHub.
Want to see the Bill Of Health for this command? Check out Get-DbaRandomizedDatasetTemplate.

Synopsis

Gets the dataset templates

Description

Retrieves the templates from the default directory and if assigned custom directories

Syntax

Get-DbaRandomizedDatasetTemplate
    [[-Template] <String[]>]
    [[-Path] <String[]>]
    [-ExcludeDefault]
    [-EnableException]
    [<CommonParameters>]

 

Examples

 

Example: 1
PS C:\> Get-DbaRandomizedDatasetTemplate

Get the templates from the default directory

Example: 2
PS C:\> Get-DbaRandomizedDatasetTemplate  -Template Personaldata, Test

Get the templates from thedefault directory and filter on PersonalData and Test

Example: 3
PS C:\> Get-DbaRandomizedDatasetTemplate  -Path C:\DatasetTemplates

Get the templates from a custom directory

Optional Parameters

-Template

The name of the template to use.
It will go through the default templates to see if it's present

Alias
Required False
Pipeline false
Default Value
-Path

Path or paths that contain template files

Alias
Required False
Pipeline false
Default Value
-ExcludeDefault

Exclude the default templates

Alias
Required False
Pipeline false
Default Value False
-EnableException

By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.

Alias
Required False
Pipeline false
Default Value False