Hello All,
I am trying to fetch details across 7M & Cdot storage systems. I use domain credentials to login to the storage systems. While doing so following issues are being encountered.
i) Everytime I start the script I need to provide the credentials to get into the storage systems for fetching the details. which I want to avoid and it should do it automatically
ii) Tried defining user and pword variables and creating a new object. Which works but I dont want to keep the user/password in the script as lot of users use the same system
$cred = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $user,$pword [ $user/ $pword are defined]
iii) Most importantly while connecting to the storage systems I am getting the following error frequently. Details mentioned below.
Note: I use the -credential for authentication . We need to rely on using domain authentication only for authenticating to the filer
$nccontroller = Connect-NcController $controller -Credential $cred
ERROR:
=======
Connect-NcController : Incorrect credentials for <controller_name>
At line:1 char:1
+ Connect-NcController <controler_name>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (controller_name:NcController) [Connect-NcController], NaAuthException
+ FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.C.PowerShell.SDK.ConnectNcControll
Please suggest on the queries