Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please see attached picture, it pops the error message whenver we run "Add-Credential ip-address -cred CredInfo" and supplying password.
Please help any useful idea/info. thank you
8 REPLIES 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It works for me
You can use this way to save the encrypted password (alternative way)
Powershell Store Encrypted Password for auto login
$credential = Get-Credential
$credential.password |ConvertFrom-SecureString |set-Content C:\Users\<user_name>\encrypted_password.txt
$encrypted = Get-Content C:\Users\<user_name>\encrypted_password.txt | ConvertTo-SecureString
$dom_user = "domain\user_name"
$credential = New-Object System.Management.Automation.PsCredential($dom_user, $encrypted)
Add-NcCredential -Controller <controller> -credential $credential
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Sanaman,
I tried your recommended script and still getting error shown in below attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What version is your PSTK?
Scripts> Import-Module "C:\Users\<User>\Documents\PowerShell\Modules\netapp_ontap\NetApp.ONTAP"
PS C:\Users\user\Scripts> get-natoolkitversion
Major Minor Build Revision
----- ----- ----- --------
9 15 1 2410
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same as you have up there. First pic is the new environment we want it on and it has same kitversion you shared. second picture is one of our very old environment that has everything working perfectly ok with version 4 1 0 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sanaman,
i ended up downgrading to Major (4) Minor (1) Build (0) Revision (0) with your "Add-NcCredential -Controller <controller> -credential $credential" command against my initial "Add-Credential ip-address -cred CredInfo" and it worked. Thanks so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sanaman,
What version did you upgrade to?
How did you downgrade?
Unfortunately I have the same problem...
A thousand thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
had issues with 9 15 1 2410, had our tech team downgrade to version 4 1 0 0 which we have on other hosts. i was not in picture of the downgrading process.. maybe Sanaman or someone else could help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot Sanaman,
I downgrade to version 9.15.1.2407 ad this works.
Thanks a lot for your support
