CommonParameters.ps1
#region Common Parameters [CmdletBinding()] param ( [Parameter(Mandatory = $false, ValueFromPipeline = $true)] [string] $ServerName = "(local)", [Parameter(Mandatory = $false, ValueFromPipeline = $true)] [string] $UserName = 'sa', [Parameter(Mandatory = $true, ValueFromPipeline = $true)] [string] $Password, [Parameter(Mandatory = $false, ValueFromPipeline = $true)] [int] $SqlQueryTimeout = 0, [Parameter(Mandatory = $false, ValueFromPipeline = $true)] [switch] $Silent = $false ); #endregion |