Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -Domain Parameter to Connect-CohesityCluster #247

Open
angrycuban13 opened this issue Nov 16, 2024 · 2 comments
Open

Add -Domain Parameter to Connect-CohesityCluster #247

angrycuban13 opened this issue Nov 16, 2024 · 2 comments

Comments

@angrycuban13
Copy link

angrycuban13 commented Nov 16, 2024

🚀 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:

  • $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.

Connect-CohesityCluster -Server myserver.contoso.com -Credential $credentials

Example or reference

Connect-CohesityCluster -Server myserver.contoso.com -Credential (Get-Credential) -Domain "mydomain.com"

@angrycuban13
Copy link
Author

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.

@angrycuban13
Copy link
Author

Potentially, you could also make it part of Set-CohesityCmdletConfig so the module knows you always want to authenticate as a domain user every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant