PowerAruba / PowerArubaCX

PowerShell module to manage ArubaCX switches
Apache License 2.0
14 stars 5 forks source link

Include credentials in scripts #56

Closed fre4ki closed 2 years ago

fre4ki commented 2 years ago

Hey Alexis,

how can i include the credentials? I tried it with the powershell integrated prompts gut it will not work..

Is there a way to integrate it?

alagoutte commented 2 years ago

Hi,

You can use

$mysecpassword = ConvertTo-SecureString aruba -AsPlainText -Force
Connect-ArubaCX -Server 192.0.2.1 -Username admin -Password $mysecpassword
fre4ki commented 2 years ago

Amazing, it works! Thank you!