Skip to main content
SnapCenter 6.0 cmdlets

Get-SmResourceCredentialName

Contributors

Gets credential information of the SQL instance that are registered with the SnapCenter Server.

Syntax

Get-SmResourceCredentialName [-HostName]  <String>  [-ResourceName]  <String>  [-ResourceId]  <String>

Detailed Description

Gets and displays the credential information of the SQL instance that are registered with the SnapCenter Server.

Parameters

Name Description Required? Pipeline Input Default Value

HostName

false

true (ByPropertyName)

ResourceName

false

true (ByPropertyName)

ResourceId

false

true (ByPropertyName)

Examples

- Example : Get the credential information of the SQL instance by the resource name. -

 Get-SmResourceCredentialName -ResourceName R708202074BV1\SQL2019

This example syntax retrieves the credential information of the SQL instance based on the resource name.

Name   : R708202074BV1\SQL2019
Type   : SQL Instance
Id : 20
Host   : R708202074BV1.HNK2.com
UserName   :
Passphrase :
Deleted: False
Auth   : SMCoreContracts.SmAuth
IsClone: False
CloneLevel : 0
Hosts  : {}
StorageName:
ResourceGroupNames :
PolicyNames:
Key: 0
NsmObjectID: 0
SizeOfSmObject : SMCoreContracts.SmObjectSize
Id : 3
RunAsName  : Hnkn
AuthMode   : Windows
UserName   : HNK2\administrator
Passpharse :
OwnerId:
HostName   :
InstanceName   :
CheckforAdministratorPrivilage : False
TargetURL  :
IsSudoEnabled  : False