I'm trying to add an additional application to existing users on multiple NetApp Clusters.
I've build a script to login to each cluster and add an additional application for a specific User.
If i try to do this with Set-NcUser, a warning is returned. Record doesn't exist.
Because of that, i added the application with invoke-ncssh.
I still want it to work with set-ncuser, but I'm missing something. Can someone help me figure out what i'm doing wrong?
Here is the line
Set-NcUser -UserName $monuser.UserName[0] -Application console -Vserver $cluster.Name -AuthMethod password -Role readonly
I checked with write-host if maybe something is wrong with the variables but everything looks fine. If i write Get-NcUset -Name *******
The user is returned correctly
PS C:****> write-host "Set-NcUser -UserName $($monuser.UserName[0]) -Application console -Vserver $($cluster.Name) -AuthMethod password -Role readonly"
Set-NcUser -UserName ********** -Application console -Vserver ******** -AuthMethod password -Role readonly