New-SqlCredential

 

New-SqlCredential [-Name*] <string> [[-Path] <string>] -Identity* <string> [-Secret <securestring>] [-ProviderName<string>] [-Script] [-WhatIf] [-Confirm]  [<CommonParameters>]
New-SqlCredential [-Name*] <string> [-InputObject*] <Server> -Identity* <string> [-Secret <securestring>][-ProviderName <string>] [-Script] [-WhatIf] [-Confirm]  [<CommonParameters>]
Parameters
-Confirm
 
-Identity <string>

  • This value is required

 

-InputObject <Server>

  • This value is required
  • Accepts pipeline input ByValue

 

-Name <string>

  • This value is required

 

-Path <string>
 
-ProviderName <string>
 
-Script
 
-Secret <securestring>
 
-WhatIf
 
<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer, PipelineVariable, and OutVariable.

Inputs

Microsoft.SqlServer.Management.Smo.Server

Outputs

System.Object

ALIASES None