You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very helpful if the Connect-CohesityCluster cmdlet had a -Domain parameter. That way you could specify if you want to authenticate as a local user, domain user, etc.
I understand you can authenticate as a domain user currently by following the instructions as outlined in Example 2. However, this requires you to specify a password in plain text which defeats the whole purpose of using the -Credentials parameter.
My current workaround for this is as follows:
$credentials = Get-Credential
$setDomain = $credentials.GetNetworkCredential()
$setDomain.Domain = "mydomain.com"
This "janky" way sets the Domain property in the GetNetworkCredential() method of the PSCredential object.
You can also specify the domain when creating a PSCredential object by using domain\username. However, I still think the module would benefit from using -Domain parameter.
🚀 Feature Request
It would be very helpful if the
Connect-CohesityCluster
cmdlet had a-Domain
parameter. That way you could specify if you want to authenticate as a local user, domain user, etc.I understand you can authenticate as a domain user currently by following the instructions as outlined in Example 2. However, this requires you to specify a password in plain text which defeats the whole purpose of using the
-Credentials
parameter.My current workaround for this is as follows:
This "janky" way sets the
Domain
property in theGetNetworkCredential()
method of thePSCredential
object.Connect-CohesityCluster -Server myserver.contoso.com -Credential $credentials
Example or reference
Connect-CohesityCluster -Server myserver.contoso.com -Credential (Get-Credential) -Domain "mydomain.com"
The text was updated successfully, but these errors were encountered: