Author Tim Cartwright
Creates a database scripting object that can be customized and used by Invoke-DBScriptObjects
Creates a database scripting object that can be customized and used by Invoke-DBScriptObjects
New-DBScripterObject
[-ServerInstance] <String>
[-Credentials <PSCredential>]
[<CommonParameters>]
-ServerInstance <String>
The sql server instance to connect to.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credentials <PSCredential>
Specifies credentials to connect to the database with. If not supplied
then a trusted connection will be used.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
$scripter = New-ScripterObject `
-ServerInstance "ServerName" `
-InformationAction Continue