Per #2, added the Credential parameter, removed Username and Password parameters, updated the comment based help, and modified the code to extract the username and password for the json. Ran a quick test against our Isilon.
It's generally preferred to stick to Credentials, but if you have processes using this module that would break, you might want to deny this PR, or accept it and add the Username and Password params back.
If you need a way to store credentials in a script, there are ways to reasonably securely encrypt them to disk using the DPAPI.
Hi!
Per #2, added the Credential parameter, removed Username and Password parameters, updated the comment based help, and modified the code to extract the username and password for the json. Ran a quick test against our Isilon.
It's generally preferred to stick to Credentials, but if you have processes using this module that would break, you might want to deny this PR, or accept it and add the Username and Password params back.
If you need a way to store credentials in a script, there are ways to reasonably securely encrypt them to disk using the DPAPI.
Cheers!
Warren